SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
15
emulators/vice/patches/patch-src_iodrv_io-unix-access_c
Normal file
15
emulators/vice/patches/patch-src_iodrv_io-unix-access_c
Normal file
|
@ -0,0 +1,15 @@
|
|||
Fix the build on non amd64/i386 platforms by patching the I/O code so we
|
||||
only call outb() if HAVE_I386_SET_IOPERM or HAVE_LIBAMD64 are defined.
|
||||
|
||||
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);
|
Loading…
Add table
Add a link
Reference in a new issue