Browse files

Fix build on GNU/kFreeBSD.

On GNU/kFreeBSD only "__FreeBSD_kernel__" is defined
but not "__FreeBSD__".
  • Loading branch information...
1 parent 40330fd commit ee50ab5beaae57da0bc1173878d0582801cc0823 @debfx debfx committed with oy Jun 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/base/detect.h
View
2 src/base/detect.h
@@ -25,7 +25,7 @@
#endif
/* unix family */
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
#define CONF_FAMILY_UNIX 1
#define CONF_FAMILY_STRING "unix"
#define CONF_PLATFORM_FREEBSD 1

0 comments on commit ee50ab5

Please sign in to comment.