pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/iftop iftop: Fix build on SunOS.
details: https://anonhg.NetBSD.org/pkgsrc/rev/fab65d802a14
branches: trunk
changeset: 314206:fab65d802a14
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Mon Oct 22 14:58:13 2018 +0000
description:
iftop: Fix build on SunOS.
diffstat:
net/iftop/distinfo | 5 +++--
net/iftop/patches/patch-iftop.c | 12 ++++++------
net/iftop/patches/patch-options.c | 16 ++++++++++++++++
3 files changed, 25 insertions(+), 8 deletions(-)
diffs (61 lines):
diff -r a697ba10c2fc -r fab65d802a14 net/iftop/distinfo
--- a/net/iftop/distinfo Mon Oct 22 14:40:49 2018 +0000
+++ b/net/iftop/distinfo Mon Oct 22 14:58:13 2018 +0000
@@ -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 @@
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 -r a697ba10c2fc -r fab65d802a14 net/iftop/patches/patch-iftop.c
--- a/net/iftop/patches/patch-iftop.c Mon Oct 22 14:40:49 2018 +0000
+++ b/net/iftop/patches/patch-iftop.c Mon Oct 22 14:58:13 2018 +0000
@@ -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 $
+
+Support DLT_PPP_SERIAL.
---- 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 @@
- }
+--- 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 @@
/*
* SLL support not available in older libpcaps
*/
- #ifdef DLT_LINUX_SLL
diff -r a697ba10c2fc -r fab65d802a14 net/iftop/patches/patch-options.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/iftop/patches/patch-options.c Mon Oct 22 14:58:13 2018 +0000
@@ -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"
Home |
Main Index |
Thread Index |
Old Index