summaryrefslogtreecommitdiff
path: root/emulators/arcem/patches/patch-hostfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/arcem/patches/patch-hostfs.c')
-rw-r--r--emulators/arcem/patches/patch-hostfs.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/emulators/arcem/patches/patch-hostfs.c b/emulators/arcem/patches/patch-hostfs.c
new file mode 100644
index 00000000000..caec5108415
--- /dev/null
+++ b/emulators/arcem/patches/patch-hostfs.c
@@ -0,0 +1,26 @@
+$NetBSD: patch-hostfs.c,v 1.1 2013/11/10 12:50:19 ryoon Exp $
+
+* Fix build on NetBSD, functionality is not tested.
+
+--- hostfs.c.orig 2012-10-21 14:43:19.000000000 +0000
++++ hostfs.c
+@@ -35,7 +35,7 @@
+ #include <dirent.h>
+ #include <unistd.h>
+ #endif
+-#if defined __unix || defined __MACH__ || defined __riscos__
++#if defined __unix || defined __MACH__ || defined __riscos__ || defined __NetBSD__
+ #include <utime.h>
+ #else
+ #include <sys/utime.h>
+@@ -72,6 +72,10 @@ int __riscosify_control = 0;
+
+ #endif /* !__riscos__ */
+
++#if defined __NetBSD__
++#define NO_OPEN64
++#endif
++
+ #include "hostfs.h"
+
+ #if defined NO_OPEN64 || defined __MACH__