aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2022-04-25 08:51:21 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2022-04-25 08:51:21 +0000
commitb45cb10229bf1ff6ced19b6497382239f15f04d1 (patch)
tree2bb99c2c5f527db35abb13049473dbf043b906d7
parent6ff68a8504ee1e1eb50d58990731be77df2960d3 (diff)
downloadports-b45cb10229bf1ff6ced19b6497382239f15f04d1.tar.gz
ports-b45cb10229bf1ff6ced19b6497382239f15f04d1.zip
emulators/vice: fix build on most archs
-rw-r--r--emulators/vice/Makefile2
-rw-r--r--emulators/vice/files/patch-src_iodrv_io-unix-access.c10
2 files changed, 8 insertions, 4 deletions
diff --git a/emulators/vice/Makefile b/emulators/vice/Makefile
index 5116109eec34..b2be2eca0ecc 100644
--- a/emulators/vice/Makefile
+++ b/emulators/vice/Makefile
@@ -2,7 +2,7 @@
PORTNAME= vice
PORTVERSION= 3.6.1
-PORTREVISION= 0
+PORTREVISION= 1
CATEGORIES= emulators
MASTER_SITES= SF/vice-emu/releases
diff --git a/emulators/vice/files/patch-src_iodrv_io-unix-access.c b/emulators/vice/files/patch-src_iodrv_io-unix-access.c
index 0a22a8184705..9adc61903536 100644
--- a/emulators/vice/files/patch-src_iodrv_io-unix-access.c
+++ b/emulators/vice/files/patch-src_iodrv_io-unix-access.c
@@ -1,12 +1,16 @@
---- src/iodrv/io-unix-access.c.orig 2019-03-21 09:04:15 UTC
+--- src/iodrv/io-unix-access.c.orig 2022-01-24 00:13:24 UTC
+++ src/iodrv/io-unix-access.c
-@@ -26,6 +26,11 @@
+@@ -26,6 +26,15 @@
#include "vice.h"
-+#if defined(__FreeBSD__) && defined(__ppc__)
++#if defined(__FreeBSD__)
+#include <sys/types.h>
++#if defined(__ppc__)
+#include <machine/pio.h>
++#else
++#include <machine/iodev.h>
++#endif
+#endif
+
#ifdef UNIX_COMPILE