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 /* ------------------------------------------------------------------------