d12f509ab6
I/O code so the outb() function is only called if HAVE_I386_SET_IOPERM or HAVE_LIBAMD64 are defined. While there, remove the --disable-hardsid configure option, as HardSID support isn't built by default.
15 lines
486 B
Plaintext
15 lines
486 B
Plaintext
$OpenBSD: patch-src_iodrv_io-unix-access_c,v 1.1 2019/03/07 14:45:29 fcambus Exp $
|
|
|
|
Index: src/iodrv/io-unix-access.c
|
|
--- src/iodrv/io-unix-access.c.orig
|
|
+++ src/iodrv/io-unix-access.c
|
|
@@ -349,7 +349,7 @@ static inline uint8_t vice_inb(uint16_t port)
|
|
return inb_p(port);
|
|
}
|
|
# else
|
|
-# ifdef __OpenBSD__
|
|
+# if defined(__OpenBSD__) && (defined(HAVE_LIBAMD64) || defined(HAVE_I386_SET_IOPERM))
|
|
static inline void vice_outb(uint16_t port, uint8_t val)
|
|
{
|
|
outb(port, val);
|