diff options
author | pdw <> | 2011-10-03 18:19:13 +0000 |
---|---|---|
committer | pdw <> | 2011-10-03 18:19:13 +0000 |
commit | 7f9d185d83803f1aff3b82da0bd9ed91c81b823a (patch) | |
tree | 9d53db4221dd4f69ebfe2aa246740c08712c87df | |
parent | 85eac861bf9a39f846f2fb58d7345034f76851c7 (diff) | |
download | iftop-7f9d185d83803f1aff3b82da0bd9ed91c81b823a.zip |
Updated FreeBSD compilation patch from Frédéric Perrin
-rw-r--r-- | config/int_ghba_r.c | 1 | ||||
-rw-r--r-- | configure.in | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/config/int_ghba_r.c b/config/int_ghba_r.c index 7a3a3c1..6801a94 100644 --- a/config/int_ghba_r.c +++ b/config/int_ghba_r.c @@ -6,6 +6,7 @@ static const char rcsid[] = "$Id$"; +#include <sys/socket.h> #include <sys/types.h> #include <errno.h> diff --git a/configure.in b/configure.in index 2aee6e3..4cbd612 100644 --- a/configure.in +++ b/configure.in @@ -81,6 +81,14 @@ AC_C_CONST AC_TYPE_SIZE_T AC_HEADER_TIME +dnl At least FeeBSD doesn't define s6_addr32 in user-land code, with a +dnl note saying this is not standard +AC_CHECK_DECL([s6_addr32], + [], + [AC_DEFINE([s6_addr32], [__u6_addr.__u6_addr32], + [Define to a way to access the inner bytes of an ip6 address.])], + [#include <netinet/in.h>]) + dnl dnl Are we on a system that uses the STREAMS low-level DLPI interface? dnl |