$NetBSD: patch-aa,v 1.2 2007/03/07 18:22:43 joerg Exp $ --- PlatformHeader.h.orig 2005-05-19 00:51:25.000000000 +0000 +++ PlatformHeader.h @@ -144,6 +144,47 @@ #define EXPORT #define _REENTRANT 1 +#elif defined(__DragonFly__) + +#include +#if _BYTE_ORDER == _BIG_ENDIAN + #define BIGENDIAN 1 +#else + #define BIGENDIAN 0 +#endif + +#define USE_ATOMICLIB 0 +#define MACOSXEVENTQUEUE 0 +#define __PTHREADS__ 1 +#define __PTHREADS_MUTEXES__ 1 +#define ALLOW_NON_WORD_ALIGN_ACCESS 1 +#define USE_THREAD 1 //Flag used in QTProxy +#define THREADING_IS_COOPERATIVE 1 +#define USE_THR_YIELD 0 +#define kPlatformNameString "DragonFly" +#define EXPORT +#define _REENTRANT 1 + +#elif __NetBSD__ + +#define USE_ATOMICLIB 0 +#define MACOSXEVENTQUEUE 0 +#define __PTHREADS__ 1 +#define __PTHREADS_MUTEXES__ 1 +#include +#if BYTE_ORDER == BIG_ENDIAN + #define BIGENDIAN 1 +#else + #define BIGENDIAN 0 +#endif +#define ALLOW_NON_WORD_ALIGN_ACCESS 1 +#define USE_THREAD 1 //Flag used in QTProxy +#define THREADING_IS_COOPERATIVE 1 +#define USE_THR_YIELD 0 +#define kPlatformNameString "NetBSD" +#define EXPORT +#define _REENTRANT 1 + #elif __solaris__ #ifdef sparc