Bug#557165: iptotal: FTBFS on GNU/kFreeBSD

2009-11-20 Thread Ignace Mouzannar
Hi Cyril,

On Fri, Nov 20, 2009 at 01:24, Cyril Brulebois k...@debian.org wrote:
 Package: iptotal
 Version: 0.3.3-9
 Severity: important
 Tags: patch
 User: debian-...@lists.debian.org
 Usertags: kfreebsd

 Hi,

 your package FTBFS on GNU/kFreeBSD given it tries to include some
 Linux-specific headers unconditionally. Please find attached a tiny
 patch to fix that. Please note I didn't try to build it on Linux,
 but it really should do. ;) [Feel free to slap me back if it doesn't.]

 Thanks for considering.

Thank you for reporting this and for attaching a patch.

The package now seems to build fine on GNU/kFreeBSD-i386 and on Linux
(i386 and amd64). [no slap needed ;)]

A new release should be uploaded very soon.

Kind regards,
 Ignace M



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#557165: iptotal: FTBFS on GNU/kFreeBSD

2009-11-19 Thread Cyril Brulebois
Package: iptotal
Version: 0.3.3-9
Severity: important
Tags: patch
User: debian-...@lists.debian.org
Usertags: kfreebsd

Hi,

your package FTBFS on GNU/kFreeBSD given it tries to include some
Linux-specific headers unconditionally. Please find attached a tiny
patch to fix that. Please note I didn't try to build it on Linux,
but it really should do. ;) [Feel free to slap me back if it doesn't.]

Thanks for considering.

Mraw,
KiBi.
--- a/iptotal.c
+++ b/iptotal.c
@@ -45,9 +45,15 @@ Include Files
 #include unistd.h
 #include time.h
 #include netinet/in.h			
+#ifdef __linux__
 #include linux/if.h
+#else
+#include net/if.h
+#endif
 #include errno.h
+#ifdef __linux
 #include asm/errno.h			/* for EINVAL */
+#endif
 
 /*