Skip to content

Commit

Permalink
emulators/vice: fix build on arm64
Browse files Browse the repository at this point in the history
PR: 273785
  • Loading branch information
Dirk Meyer authored and Dirk Meyer committed Oct 9, 2023
1 parent f22649e commit 0b4ed72
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion emulators/vice/Makefile
@@ -1,6 +1,6 @@
PORTNAME= vice
PORTVERSION= 3.7.1
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= emulators
MASTER_SITES= SF/vice-emu/releases

Expand Down
@@ -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 @@

Expand All @@ -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
}

0 comments on commit 0b4ed72

Please sign in to comment.