1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

emulators/vice: fix build on arm64

PR: 273785
This commit is contained in:
Dirk Meyer 2023-10-09 11:02:14 +02:00
parent f22649e358
commit 0b4ed72cbb
2 changed files with 14 additions and 2 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= vice
PORTVERSION= 3.7.1
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= emulators
MASTER_SITES= SF/vice-emu/releases

View File

@ -1,4 +1,4 @@
--- src/arch/shared/iodrv/io-unix-access.c.orig 2022-12-24 19:44:57 UTC
--- src/arch/shared/iodrv/io-unix-access.c.orig 2022-12-27 23:56:56 UTC
+++ src/arch/shared/iodrv/io-unix-access.c
@@ -26,6 +26,15 @@
@ -16,3 +16,15 @@
#ifdef UNIX_COMPILE
#include <fcntl.h>
@@ -121,7 +130,11 @@ static uint8_t device_io_inb(uint16_t addr)
#ifdef HAVE_INBV
return inbv(addr);
#else
+#ifdef HAVE_INB
return inb(addr);
+#else
+ return 0;
+#endif
#endif
}