Package: phnxdeco
Version: 0.33-1
Severity: important
Tags: patch

Hi,

currently your package FTBFS on GNU/kFreeBSD with the following error:
> gcc -DDEBUG  phnxdeco.c phnxfunc.o kernel.o -s -fpack-struct -o phnxdeco
> phnxdeco.c:28:21: error: mem.h: No such file or directory
> phnxdeco.c:29:23: error: conio.h: No such file or directory
> make[1]: *** [phnxdeco] Error 1

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

Please find attached a patch based on the __GLIBC__ macro defined on GNU/k*BSD
systems. Alternatively, one could use __FreeBSD_kernel__ to restrict the impact
to GNU/kFreeBSD, but it is also less portable.

Cheers,

-- 
Cyril Brulebois
--- phnxdeco-0.33/src/phnxdeco.c	2007-03-16 13:34:44.804656000 +0100
+++ phnxdeco-0.33/src/phnxdeco.c	2007-03-16 13:35:01.000000000 +0100
@@ -21,7 +21,7 @@
 #include	<stdio.h>
 #include	<stdlib.h>
 
-#if defined(LINUX) || defined(__LINUX__) || defined(__linux__)
+#if defined(LINUX) || defined(__LINUX__) || defined(__linux__) || defined(__GLIBC__)
     #include	<memory.h>
     #define	__LINUX_NOW__
 #else 

Reply via email to