From: Adam Dickmeiss Date: Thu, 3 Jan 2008 22:54:06 +0000 (+0000) Subject: Define _BSD_SOURCE whenever GLIBC is used. X-Git-Tag: YAZ.3.0.20~24 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=6e325c841bbf92ba84e4a8361c8050a50943aa5c Define _BSD_SOURCE whenever GLIBC is used. For ziffy, define _BSD_SOURCE whenever GLIBC is used. This is to fix compilation on GNU/kFreeBSD. Debian bug #410346. --- diff --git a/ziffy/hooks.c b/ziffy/hooks.c index cec5e50..936b927 100644 --- a/ziffy/hooks.c +++ b/ziffy/hooks.c @@ -20,8 +20,9 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include -#if defined(linux) +#if defined(__GLIBC__) # if !defined(_BSD_SOURCE) # define _BSD_SOURCE # endif @@ -30,7 +31,6 @@ /* * Operating System include files */ -#include #include #include #include