summaryrefslogtreecommitdiff
path: root/emulators/xm8/patches/patch-Source_ePC-8801MA_common.h
diff options
context:
space:
mode:
authortsutsui <tsutsui@pkgsrc.org>2019-09-07 00:36:34 +0000
committertsutsui <tsutsui@pkgsrc.org>2019-09-07 00:36:34 +0000
commitce53dc0cbc821395e5732bb438980e0289284865 (patch)
tree068e1262aa180bd501350f28b9fc6c3d1a2f7522 /emulators/xm8/patches/patch-Source_ePC-8801MA_common.h
parenta5a5a651dfc08cc8a948f8b41639c2c97538af2b (diff)
downloadpkgsrc-ce53dc0cbc821395e5732bb438980e0289284865.tar.gz
emulators/xm8: import xm8-1.70.
XM8 is "eXcellent Multi-platform emulator type 8", an emulator of NEC PC-8801 series, based on "ePC-8801MA".
Diffstat (limited to 'emulators/xm8/patches/patch-Source_ePC-8801MA_common.h')
-rw-r--r--emulators/xm8/patches/patch-Source_ePC-8801MA_common.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/emulators/xm8/patches/patch-Source_ePC-8801MA_common.h b/emulators/xm8/patches/patch-Source_ePC-8801MA_common.h
new file mode 100644
index 00000000000..080ea09ea95
--- /dev/null
+++ b/emulators/xm8/patches/patch-Source_ePC-8801MA_common.h
@@ -0,0 +1,31 @@
+$NetBSD: patch-Source_ePC-8801MA_common.h,v 1.1 2019/09/07 00:36:34 tsutsui Exp $
+
+- add NetBSD denitions
+
+--- Source/ePC-8801MA/common.h.orig 2017-12-20 04:10:42.000000000 +0000
++++ Source/ePC-8801MA/common.h
+@@ -33,6 +33,24 @@ typedef int errno_t;
+ #define strnicmp strncasecmp
+ #define stricmp strcasecmp
+ #endif // __linux__
++// NetBSD
++#ifdef __NetBSD__
++#include <types.h>
++#include <endian.h>
++#include <sys/param.h>
++#if BYTE_ORDER == LITTLE_ENDIAN
++#define __LITTLE_ENDIAN__
++#endif // BYTE_ORDER == LITTLE_ENDIAN
++#define _MAX_PATH MAXPATHLEN
++#define __min min
++#define __stdcall
++typedef int errno_t;
++typedef uint8_t Uint8;
++typedef uint16_t Uint16;
++typedef uint32_t Uint32;
++#define strnicmp strncasecmp
++#define stricmp strcasecmp
++#endif // __NetBSD__
+
+ // max() and min() macro
+ #ifndef max