$NetBSD: patch-af,v 1.2 2004/12/14 01:02:19 dbj Exp $

--- dyngen-exec.h.orig	Sun Nov 14 15:51:33 2004
+++ dyngen-exec.h
@@ -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
-
+/*
 #define INT8_MIN		(-128)
 #define INT16_MIN		(-32767-1)
 #define INT32_MIN		(-2147483647-1)
@@ -56,8 +58,12 @@ typedef signed long long int64_t;
 #define UINT16_MAX		(65535)
 #define UINT32_MAX		(4294967295U)
 #define UINT64_MAX		((uint64_t)(18446744073709551615))
-
+*/
+#ifdef __NetBSD__
+typedef	struct __sFILE FILE;
+#else
 typedef struct FILE FILE;
+#endif
 extern int fprintf(FILE *, const char *, ...);
 extern int printf(const char *, ...);
 #undef NULL
@@ -70,6 +76,7 @@ extern int printf(const char *, ...);
 #define FE_UPWARD      FP_RP
 #define FE_TOWARDZERO  FP_RZ
 #define fesetround(x)  fpsetround(x)
+#define fegetround()  fpgetround()
 #else
 #include <fenv.h>
 #endif