projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Define _BSD_SOURCE whenever GLIBC is used.
[yaz-moved-to-github.git]
/
ziffy
/
hooks.c
diff --git
a/ziffy/hooks.c
b/ziffy/hooks.c
index
cec5e50
..
936b927
100644
(file)
--- a/
ziffy/hooks.c
+++ b/
ziffy/hooks.c
@@
-20,8
+20,9
@@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
* 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
# if !defined(_BSD_SOURCE)
# define _BSD_SOURCE
# endif
@@
-30,7
+31,6
@@
/*
* Operating System include files
*/
/*
* Operating System include files
*/
-#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>