Fix build on GNU/kFreeBSD.

On GNU/kFreeBSD only "__FreeBSD_kernel__" is defined
but not "__FreeBSD__".
This commit is contained in:
Felix Geyer 2011-06-06 11:29:08 +02:00 committed by oy
parent 40330fd7c5
commit ee50ab5bea

View file

@ -25,7 +25,7 @@
#endif #endif
/* unix family */ /* unix family */
#if defined(__FreeBSD__) #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
#define CONF_FAMILY_UNIX 1 #define CONF_FAMILY_UNIX 1
#define CONF_FAMILY_STRING "unix" #define CONF_FAMILY_STRING "unix"
#define CONF_PLATFORM_FREEBSD 1 #define CONF_PLATFORM_FREEBSD 1