git: 244ec6f00ab3 - main - emulators/vice: fix build on arm64
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 26 Jun 2022 05:07:21 UTC
The branch main has been updated by dinoex:
URL: https://cgit.FreeBSD.org/ports/commit/?id=244ec6f00ab34d8b10c819c8413098ffcbf96181
commit 244ec6f00ab34d8b10c819c8413098ffcbf96181
Author: Dirk Meyer <dinoex@FreeBSD.org>
AuthorDate: 2022-06-26 05:07:06 +0000
Commit: Dirk Meyer <dinoex@FreeBSD.org>
CommitDate: 2022-06-26 05:07:06 +0000
emulators/vice: fix build on arm64
---
emulators/vice/files/patch-src_iodrv_io-unix-access.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
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 9adc61903536..e4cdf71a739d 100644
--- a/emulators/vice/files/patch-src_iodrv_io-unix-access.c
+++ b/emulators/vice/files/patch-src_iodrv_io-unix-access.c
@@ -16,3 +16,16 @@
#ifdef UNIX_COMPILE
#include <fcntl.h>
+@@ -84,10 +93,12 @@
+ #include "io-access.h"
+
+ #if defined(__linux) || defined(__FreeBSD__) || ((defined(sun) || defined(__sun)) && (defined(__SVR4) || defined(__svr4__)))
++#if !defined(__aarch64__) && !defined (__aarch64__)
+
+ #define IO_PORT_ACCESS
+
+ static int io_fd = -1;
++#endif
+ #endif
+
+ #if (defined(sun) || defined(__sun)) && (defined(__SVR4) || defined(__svr4__))