From: Adam Dickmeiss Date: Thu, 3 Jan 2008 23:10:08 +0000 (+0000) Subject: Always _BSD_SOURCE . X-Git-Tag: YAZ.3.0.20~21 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=162d5852cbb7881d8edae6648fbdc888d1cfe0c6;p=yaz-moved-to-github.git Always _BSD_SOURCE . Always _BSD_SOURCE regardless of GLIBC or not. Testing for __GLIBC__ after include of stdio.h was apparantly not enough --- diff --git a/ziffy/hooks.c b/ziffy/hooks.c index 936b927..54742aa 100644 --- a/ziffy/hooks.c +++ b/ziffy/hooks.c @@ -20,17 +20,13 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include +#define _BSD_SOURCE -#if defined(__GLIBC__) -# if !defined(_BSD_SOURCE) -# define _BSD_SOURCE -# endif -#endif /* * Operating System include files */ +#include #include #include #include