diff options
author | jperkin <jperkin@pkgsrc.org> | 2018-10-22 14:58:13 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2018-10-22 14:58:13 +0000 |
commit | a8ba76161450f70fe656ca06414185ea0a74860f (patch) | |
tree | 415997f7ed2b9b718f6ff49e02061365561d1b7c /net/iftop | |
parent | 34ff05e11017225ee6b3885baa5cd3f8cfb16dcd (diff) | |
download | pkgsrc-a8ba76161450f70fe656ca06414185ea0a74860f.tar.gz |
iftop: Fix build on SunOS.
Diffstat (limited to 'net/iftop')
-rw-r--r-- | net/iftop/distinfo | 5 | ||||
-rw-r--r-- | net/iftop/patches/patch-iftop.c | 12 | ||||
-rw-r--r-- | net/iftop/patches/patch-options.c | 16 |
3 files changed, 25 insertions, 8 deletions
diff --git a/net/iftop/distinfo b/net/iftop/distinfo index d3f5a729c57..7684cfac759 100644 --- a/net/iftop/distinfo +++ b/net/iftop/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.7 2017/12/11 10:44:16 manu Exp $ +$NetBSD: distinfo,v 1.8 2018/10/22 14:58:13 jperkin Exp $ SHA1 (iftop-1.0pre4.tar.gz) = 7f8e16ea26a0dee37ec9d1cbcef7b27692036572 RMD160 (iftop-1.0pre4.tar.gz) = 10730f5deccbc090ed0d5b91de009a1af9e0c90d @@ -6,5 +6,6 @@ SHA512 (iftop-1.0pre4.tar.gz) = abd74e8025bb82fef9ebab4997b1d018201a523d47c01281 Size (iftop-1.0pre4.tar.gz) = 204665 bytes SHA1 (patch-addrs_ioctl.c) = 3b7907efd321409038217eb2476814b9adbb5114 SHA1 (patch-dlcommon.h) = 787296f9d337a6b6a5ef080452cd14a3580a5fc3 -SHA1 (patch-iftop.c) = 1f840b7446b839443279b3f2fa52a060401cdc88 +SHA1 (patch-iftop.c) = 6a04a3876a9d8a478749cc3f3c1e6fc3f8d4220d SHA1 (patch-iftop.h) = 4a0760bc69e821e43d41da46ab44dfd35ddfb5dd +SHA1 (patch-options.c) = f85a229a50d520bf74d2605f85d52c8f0c82014b diff --git a/net/iftop/patches/patch-iftop.c b/net/iftop/patches/patch-iftop.c index 7e1e9eb3dd4..823baaefeca 100644 --- a/net/iftop/patches/patch-iftop.c +++ b/net/iftop/patches/patch-iftop.c @@ -1,9 +1,10 @@ -$NetBSD: patch-iftop.c,v 1.1 2017/12/11 10:44:17 manu Exp $ +$NetBSD: patch-iftop.c,v 1.2 2018/10/22 14:58:14 jperkin Exp $ ---- iftop.c.orig 2014-01-19 21:21:19.000000000 +0100 -+++ iftop.c 2017-12-11 11:22:55.000000000 +0100 -@@ -756,8 +756,14 @@ - } +Support DLT_PPP_SERIAL. + +--- iftop.c.orig 2014-01-19 20:21:19.000000000 +0000 ++++ iftop.c +@@ -757,6 +757,12 @@ void packet_init() { else if(dlt == DLT_PPP) { packet_handler = handle_ppp_packet; } @@ -16,4 +17,3 @@ $NetBSD: patch-iftop.c,v 1.1 2017/12/11 10:44:17 manu Exp $ /* * SLL support not available in older libpcaps */ - #ifdef DLT_LINUX_SLL diff --git a/net/iftop/patches/patch-options.c b/net/iftop/patches/patch-options.c new file mode 100644 index 00000000000..35d91017aef --- /dev/null +++ b/net/iftop/patches/patch-options.c @@ -0,0 +1,16 @@ +$NetBSD: patch-options.c,v 1.1 2018/10/22 14:58:14 jperkin Exp $ + +SunOS needs sockio.h for SIOCGIFFLAGS. + +--- options.c.orig 2014-01-19 20:16:43.000000000 +0000 ++++ options.c +@@ -18,6 +18,9 @@ + #include <netinet/in.h> + #include <arpa/inet.h> + #include <net/if.h> ++#ifdef __sun ++#include <sys/sockio.h> ++#endif + + #include "iftop.h" + #include "options.h" |