summaryrefslogtreecommitdiff
path: root/emulators/qemu/patches/patch-af
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/qemu/patches/patch-af')
-rw-r--r--emulators/qemu/patches/patch-af26
1 files changed, 15 insertions, 11 deletions
diff --git a/emulators/qemu/patches/patch-af b/emulators/qemu/patches/patch-af
index 5ab6345105b..1d8644fdbb9 100644
--- a/emulators/qemu/patches/patch-af
+++ b/emulators/qemu/patches/patch-af
@@ -1,8 +1,18 @@
-$NetBSD: patch-af,v 1.1.1.1 2004/11/09 13:05:34 xtraeme Exp $
+$NetBSD: patch-af,v 1.2 2004/12/14 01:02:19 dbj Exp $
---- dyngen-exec.h.orig 2004-07-10 21:20:09.000000000 +0300
+--- dyngen-exec.h.orig Sun Nov 14 15:51:33 2004
+++ dyngen-exec.h
-@@ -43,7 +43,7 @@ typedef signed long int64_t;
+@@ -23,7 +23,9 @@
+ /* NOTE: standard headers should be used with special care at this
+ point because host CPU registers are used as global variables. Some
+ host headers do not allow that. */
++#ifndef __APPLE__
+ #include <stddef.h>
++#endif
+
+ typedef unsigned char uint8_t;
+ typedef unsigned short uint16_t;
+@@ -43,7 +45,7 @@ typedef signed long int64_t;
#else
typedef signed long long int64_t;
#endif
@@ -11,7 +21,7 @@ $NetBSD: patch-af,v 1.1.1.1 2004/11/09 13:05:34 xtraeme Exp $
#define INT8_MIN (-128)
#define INT16_MIN (-32767-1)
#define INT32_MIN (-2147483647-1)
-@@ -56,13 +56,17 @@ typedef signed long long int64_t;
+@@ -56,8 +58,12 @@ typedef signed long long int64_t;
#define UINT16_MAX (65535)
#define UINT32_MAX (4294967295U)
#define UINT64_MAX ((uint64_t)(18446744073709551615))
@@ -25,13 +35,7 @@ $NetBSD: patch-af,v 1.1.1.1 2004/11/09 13:05:34 xtraeme Exp $
extern int fprintf(FILE *, const char *, ...);
extern int printf(const char *, ...);
#undef NULL
- #define NULL 0
--#if defined(_BSD) && !defined(__APPLE__)
-+#if defined(_BSD) || !defined(__APPLE__)
- #include <ieeefp.h>
-
- #define FE_TONEAREST FP_RN
-@@ -70,6 +74,7 @@ extern int printf(const char *, ...);
+@@ -70,6 +76,7 @@ extern int printf(const char *, ...);
#define FE_UPWARD FP_RP
#define FE_TOWARDZERO FP_RZ
#define fesetround(x) fpsetround(x)