Jamie, Based upon the feedback I have received (including #debian-hurd) I am attaching a new debdiff. Unless I get any more feedback I'll probably upload it tomorrow with a 2-day delay.
diff -Nru pmacct-0.14.0/debian/changelog pmacct-0.14.0/debian/changelog --- pmacct-0.14.0/debian/changelog 2012-05-24 08:11:21.000000000 +0100 +++ pmacct-0.14.0/debian/changelog 2012-06-20 14:29:08.000000000 +0100 @@ -1,3 +1,11 @@ +pmacct (0.14.0-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Added special include of net/if_dl.h on kfreebsd + and disabled AF_LINK support on Hurd (Closes: #675836) + + -- Nicholas Bamber <nicho...@periapt.co.uk> Wed, 20 Jun 2012 11:15:42 +0100 + pmacct (0.14.0-1) unstable; urgency=low * New upstream release diff -Nru pmacct-0.14.0/debian/control pmacct-0.14.0/debian/control --- pmacct-0.14.0/debian/control 2012-02-10 02:33:51.000000000 +0000 +++ pmacct-0.14.0/debian/control 2012-06-20 10:37:48.000000000 +0100 @@ -2,7 +2,8 @@ Section: net Priority: optional Maintainer: Jamie Wilkinson <j...@debian.org> -Build-Depends: debhelper (>= 7), zlib1g-dev, libpcap-dev, libpq-dev, libmysqlclient-dev, libsqlite3-dev +Build-Depends: debhelper (>= 7), zlib1g-dev, libpcap-dev, libpq-dev, libmysqlclient-dev, libsqlite3-dev, + kfreebsd-kernel-headers[kfreebsd-any] Standards-Version: 3.8.3 Package: pmacct diff -Nru pmacct-0.14.0/debian/patches/kfreebsd.patch pmacct-0.14.0/debian/patches/kfreebsd.patch --- pmacct-0.14.0/debian/patches/kfreebsd.patch 1970-01-01 01:00:00.000000000 +0100 +++ pmacct-0.14.0/debian/patches/kfreebsd.patch 2012-06-20 14:34:08.000000000 +0100 @@ -0,0 +1,26 @@ +Author: Nicholas Bamber <nicho...@periapt.co.uk> +Subject: FTBS on kfreebsd +Last-Update: 2012-06-20 +Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=675836 +--- a/src/isis/sockunion.c ++++ b/src/isis/sockunion.c +@@ -27,6 +27,10 @@ + #include "prefix.h" + #include "sockunion.h" + ++#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) ++#include <net/if_dl.h> ++#endif ++ + const char * + inet_sutop (union sockunion *su, char *str) + { +@@ -619,7 +623,7 @@ + break; + #endif /* ENABLE_IPV6 */ + +-#ifdef AF_LINK ++#if defined(AF_LINK) && !defined(__GNU__) + case AF_LINK: + { + struct sockaddr_dl *sdl; diff -Nru pmacct-0.14.0/debian/patches/series pmacct-0.14.0/debian/patches/series --- pmacct-0.14.0/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ pmacct-0.14.0/debian/patches/series 2012-06-20 10:44:37.000000000 +0100 @@ -0,0 +1 @@ +kfreebsd.patch