$NetBSD: patch-af,v 1.5 2006/09/16 15:29:35 hira Exp $ --- dyngen-exec.h.orig 2006-09-05 01:19:38.000000000 +0200 +++ dyngen-exec.h 2006-09-05 01:21:00.000000000 +0200 @@ -30,7 +30,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 +#endif typedef unsigned char uint8_t; typedef unsigned short uint16_t; @@ -62,6 +64,7 @@ #endif #endif +#if 0 #define INT8_MIN (-128) #define INT16_MIN (-32767-1) #define INT32_MIN (-2147483647-1) @@ -74,12 +77,17 @@ #define UINT16_MAX (65535) #define UINT32_MAX (4294967295U) #define UINT64_MAX ((uint64_t)(18446744073709551615)) +#endif +#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"