$NetBSD: patch-af,v 1.3 2005/05/03 11:18:47 xtraeme Exp $

--- dyngen-exec.h.orig	2005-04-28 22:23:53.000000000 +0200
+++ dyngen-exec.h	2005-04-28 22:25:30.000000000 +0200
@@ -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;
@@ -44,6 +46,7 @@
 typedef signed long long int64_t;
 #endif
 
+/*
 #define INT8_MIN		(-128)
 #define INT16_MIN		(-32767-1)
 #define INT32_MIN		(-2147483647-1)
@@ -56,12 +59,17 @@
 #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;
 extern int fprintf(FILE *, const char *, ...);
 extern int printf(const char *, ...);
 #undef NULL
 #define NULL 0
+#endif
 
 #ifdef __i386__
 #define AREG0 "ebp"
