$NetBSD: patch-ac,v 1.6 2010/01/17 02:49:05 obache Exp $ Add NetBSD and DragonFly support. http://sourceforge.net/tracker/index.php?func=detail&aid=2447593&group_id=200242&atid=972717 --- myconf.h.orig 2009-12-08 08:34:21.000000000 +0000 +++ myconf.h @@ -44,6 +44,11 @@ #define _SYS_OPENBSD_ #define TTSYSNAME "OpenBSD" +#elif defined(__DragonFly__) + +#define _SYS_DRAGONFLY_ +#define TTSYSNAME "DragonFly" + #elif defined(__sun__) || defined(__sun) #define _SYS_SUNOS_ @@ -92,7 +97,7 @@ #endif #if !defined(_SYS_LINUX_) && !defined(_SYS_FREEBSD_) && !defined(_SYS_MACOSX_) && \ - !defined(_SYS_SUNOS_) + !defined(_SYS_SUNOS_) && !defined(_SYS_NETBSD_) && !defined(_SYS_DRAGONFLY_) #error ======================================= #error Your platform is not supported. Sorry. #error ======================================= @@ -215,7 +220,7 @@ #include #include -#if defined(_SYS_FREEBSD_) || defined(_SYS_MACOSX_) +#if defined(_SYS_FREEBSD_) || defined(_SYS_MACOSX_) || defined(_SYS_NETBSD_) || defined(_SYS_DRAGONFLY_) #define TTUSEKQUEUE 1 #elif defined(_SYS_SUNOS_) @@ -242,7 +247,7 @@ typedef struct { int portev_object; } po *************************************************************************************************/ -#if defined(_SYS_FREEBSD_) || defined(_SYS_NETBSD_) || defined(_SYS_OPENBSD_) +#if defined(_SYS_FREEBSD_) #define nan(TC_a) strtod("nan", NULL) #define nanl(TC_a) ((long double)strtod("nan", NULL)) #endif