openbsd-ports/emulators/vice/patches/patch-src_iodrv_io-unix-access_c
fcambus d12f509ab6 Attempt to fix the build on non amd64/i386 platforms, by patching the
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.
2019-03-07 14:45:29 +00:00

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);