Always _BSD_SOURCE .
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 3 Jan 2008 23:10:08 +0000 (23:10 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 3 Jan 2008 23:10:08 +0000 (23:10 +0000)
Always _BSD_SOURCE regardless of GLIBC or not. Testing for __GLIBC__
after include of stdio.h was apparantly not enough

ziffy/hooks.c

index 936b927..54742aa 100644 (file)
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
-#include <stdio.h>
+#define _BSD_SOURCE
 
-#if defined(__GLIBC__)
-# if !defined(_BSD_SOURCE)
-#  define _BSD_SOURCE
-# endif
-#endif
 
 /*
  * Operating System include files
  */
+#include <stdio.h>
 #include <string.h>
 #include <sys/types.h>
 #include <sys/socket.h>