From 6e325c841bbf92ba84e4a8361c8050a50943aa5c Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 3 Jan 2008 22:54:06 +0000 Subject: [PATCH] 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. --- ziffy/hooks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 1.7.10.4