$NetBSD: patch-af,v 1.2 2006/01/20 20:40:19 jmmv Exp $ --- boost/config/platform/bsd.hpp.orig 2005-08-24 17:45:17.000000000 +0200 +++ boost/config/platform/bsd.hpp @@ -23,6 +23,10 @@ #define BOOST_PLATFORM "DragonFly " BOOST_STRINGIZE(__DragonFly__) #endif +#if defined(__DragonFly__) +#define _REENTRANT 1 +#endif + // // is this the correct version check? // FreeBSD has but does not @@ -36,20 +40,20 @@ // FreeBSD 3.x has pthreads support, but defines _POSIX_THREADS in // and not in // -#if defined(__FreeBSD__) && (__FreeBSD__ <= 3) +#if defined(__DragonFly__) || defined(__FreeBSD__) && (__FreeBSD__ <= 3) # define BOOST_HAS_PTHREADS #endif // // No wide character support in the BSD header files: // -#if !(defined(__FreeBSD__) && (__FreeBSD__ >= 5)) +#if !((defined(__FreeBSD__) && (__FreeBSD__ >= 5))) && !defined(__DragonFly__) # define BOOST_NO_CWCHAR #endif // // The BSD has macros only, no functions: // -#if !defined(__OpenBSD__) +#if !defined(__OpenBSD__) && !defined(__DragonFly__) # define BOOST_NO_CTYPE_FUNCTIONS #endif