emulators/vice: fix build on most archs

This commit is contained in:
Dirk Meyer 2022-04-25 10:51:21 +02:00
parent 6ff68a8504
commit b45cb10229
2 changed files with 8 additions and 4 deletions

View file

@ -2,7 +2,7 @@
PORTNAME= vice
PORTVERSION= 3.6.1
PORTREVISION= 0
PORTREVISION= 1
CATEGORIES= emulators
MASTER_SITES= SF/vice-emu/releases

View file

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