Define _BSD_SOURCE whenever GLIBC is used.
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 3 Jan 2008 22:54:06 +0000 (22:54 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 3 Jan 2008 22:54:06 +0000 (22:54 +0000)
For ziffy, define _BSD_SOURCE whenever GLIBC is used. This is
to fix compilation on GNU/kFreeBSD. Debian bug #410346.

ziffy/hooks.c

index cec5e50..936b927 100644 (file)
@@ -20,8 +20,9 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#include <stdio.h>
 
-#if defined(linux)
+#if defined(__GLIBC__)
 # if !defined(_BSD_SOURCE)
 #  define _BSD_SOURCE
 # endif
@@ -30,7 +31,6 @@
 /*
  * Operating System include files
  */
-#include <stdio.h>
 #include <string.h>
 #include <sys/types.h>
 #include <sys/socket.h>