Package: xjdic Severity: important Tags: patch Hi,
currently your package FTBFS on GNU/kFreeBSD with the following error: > gcc -Wall -g -O3 -c -DXJDFRONTEND -DXJDDIC -DMMAP xjdfrontend.c -o > xjdfrontend_sa.o > xjdfrontend.c:43:20: error: termio.h: No such file or directory > xjdfrontend.c: In function 'ioctlraw': > xjdfrontend.c:246: warning: implicit declaration of function 'ioctl' > xjdfrontend.c:246: error: 'TCGETA' undeclared (first use in this function) > xjdfrontend.c:246: error: (Each undeclared identifier is reported only once > xjdfrontend.c:246: error: for each function it appears in.) > xjdfrontend.c:247: error: invalid use of undefined type 'struct termio' > xjdfrontend.c:247: error: 'ICANON' undeclared (first use in this function) > xjdfrontend.c:247: error: invalid use of undefined type 'struct termio' > xjdfrontend.c:247: error: 'ISIG' undeclared (first use in this function) > xjdfrontend.c:247: error: invalid use of undefined type 'struct termio' > xjdfrontend.c:247: error: 'ECHO' undeclared (first use in this function) > xjdfrontend.c:248: error: invalid use of undefined type 'struct termio' > xjdfrontend.c:248: error: 'IXON' undeclared (first use in this function) > xjdfrontend.c:249: error: invalid use of undefined type 'struct termio' > xjdfrontend.c:249: error: invalid use of undefined type 'struct termio' > xjdfrontend.c:249: error: 'TCSETA' undeclared (first use in this function) Full build log are available at <http://experimental.ftbfs.de/build.php?arch=kfreebsd-i386&pkg=xjdic>. As you'll see, the patch is rather trivial and harmless for Linux builds. Cheers, -- Cyril Brulebois
--- xjdic-24/xjdfrontend.c 2007-03-10 01:04:05.603355000 +0100 +++ xjdic-24/xjdfrontend.c 2007-03-10 01:10:14.000000000 +0100 @@ -34,6 +34,10 @@ order to enable this, people should compile with the option -D__STRICT_BSD___ . */ +#if defined(__FreeBSD_kernel__) +#define __STRICT_BSD__ +#endif + #ifdef __STRICT_BSD__ #include <sgtty.h> #else