Package: ircd-irc2
Version: 2.11.1p1+dfsg-1
Severity: important
Tags: patch

Hi,

currently your package FTBFS on GNU/kFreeBSD with the following error:
> gcc -g -O2 -I. -I../ircd -I../common  
> -DIRCDPID_PATH="\"/var/run/ircd/ircd.pid\"" 
> -DIAUTH_PATH="\"/usr/sbin/iauth\"" -DIAUTH="\"iauth\"" -c -o s_bsd.o 
> ../ircd/s_bsd.c
> ../ircd/s_bsd.c: In function 'read_message':
> ../ircd/s_bsd.c:2161: error: 'POLLRDNORM' undeclared (first use in this 
> function)
> ../ircd/s_bsd.c:2161: error: (Each undeclared identifier is reported only once
> ../ircd/s_bsd.c:2161: error: for each function it appears in.)
> ../ircd/s_bsd.c:2165: error: 'POLLWRNORM' undeclared (first use in this 
> function)
> make[1]: *** [s_bsd.o] Error 1

Full build logs are available at
<http://experimental.ftbfs.de/build.php?arch=kfreebsd-i386&pkg=ircd-irc2>.

Please find attached a patch ensuring the detection of k*BSD platforms
through the __GLIBC__ macro they define.

Cheers,

-- 
Cyril Brulebois
--- ircd-irc2-2.11.1p1+dfsg/common/os.h	2007-03-15 12:58:09.069878000 +0100
+++ ircd-irc2-2.11.1p1+dfsg/common/os.h	2007-03-15 12:58:45.000000000 +0100
@@ -27,7 +27,7 @@
 
 #include "setup.h"
 
-#if defined(linux) || defined(__CYGWIN32__)
+#if defined(linux) || defined(__CYGWIN32__) || defined(__GLIBC__)
 # define _GNU_SOURCE 1
 #endif
 

Reply via email to