git: b45cb10229bf - main - emulators/vice: fix build on most archs

From: Dirk Meyer <dinoex_at_FreeBSD.org>
Date: Mon, 25 Apr 2022 08:51:44 UTC
The branch main has been updated by dinoex:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b45cb10229bf1ff6ced19b6497382239f15f04d1

commit b45cb10229bf1ff6ced19b6497382239f15f04d1
Author:     Dirk Meyer <dinoex@FreeBSD.org>
AuthorDate: 2022-04-25 08:51:21 +0000
Commit:     Dirk Meyer <dinoex@FreeBSD.org>
CommitDate: 2022-04-25 08:51:21 +0000

    emulators/vice: fix build on most archs
---
 emulators/vice/Makefile                               |  2 +-
 emulators/vice/files/patch-src_iodrv_io-unix-access.c | 10 +++++++---
 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