diff options
author | gahr <gahr@FreeBSD.org> | 2008-09-09 21:50:49 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2008-09-09 21:50:49 +0800 |
commit | 32f58cc8e049e2b4bd58d791def2528870889b7e (patch) | |
tree | 86263a7bc9e91f9b81bde8c3c9f11f793a35c4ca /net-mgmt | |
parent | 458d783d6548cfbed88462989bb2d52c927e6795 (diff) | |
download | freebsd-ports-gnome-32f58cc8e049e2b4bd58d791def2528870889b7e.tar.gz freebsd-ports-gnome-32f58cc8e049e2b4bd58d791def2528870889b7e.tar.zst freebsd-ports-gnome-32f58cc8e049e2b4bd58d791def2528870889b7e.zip |
- Unbreak on sparc64
PR: 122381
Approved by: portmgr
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/collectd/files/patch-src__dns.c | 18 | ||||
-rw-r--r-- | net-mgmt/collectd5/files/patch-src__dns.c | 18 |
2 files changed, 36 insertions, 0 deletions
diff --git a/net-mgmt/collectd/files/patch-src__dns.c b/net-mgmt/collectd/files/patch-src__dns.c new file mode 100644 index 000000000000..fb045049b25a --- /dev/null +++ b/net-mgmt/collectd/files/patch-src__dns.c @@ -0,0 +1,18 @@ +--- src/dns.c.orig 2008-09-05 15:26:02.000000000 +0000 ++++ src/dns.c 2008-09-05 15:25:55.000000000 +0000 +@@ -210,6 +210,15 @@ + pthread_sigmask (SIG_SETMASK, &sigmask, NULL); + } + ++ /* Check for pcap_device, if needed */ ++#ifdef __sparc64__ ++ if (pcap_device == NULL) ++ { ++ ERROR ("dns plugin: Interface required"); ++ return (NULL); ++ } ++#endif ++ + /* Passing `pcap_device == NULL' is okay and the same as passign "any" */ + DEBUG ("Creating PCAP object.."); + pcap_obj = pcap_open_live (pcap_device, diff --git a/net-mgmt/collectd5/files/patch-src__dns.c b/net-mgmt/collectd5/files/patch-src__dns.c new file mode 100644 index 000000000000..fb045049b25a --- /dev/null +++ b/net-mgmt/collectd5/files/patch-src__dns.c @@ -0,0 +1,18 @@ +--- src/dns.c.orig 2008-09-05 15:26:02.000000000 +0000 ++++ src/dns.c 2008-09-05 15:25:55.000000000 +0000 +@@ -210,6 +210,15 @@ + pthread_sigmask (SIG_SETMASK, &sigmask, NULL); + } + ++ /* Check for pcap_device, if needed */ ++#ifdef __sparc64__ ++ if (pcap_device == NULL) ++ { ++ ERROR ("dns plugin: Interface required"); ++ return (NULL); ++ } ++#endif ++ + /* Passing `pcap_device == NULL' is okay and the same as passign "any" */ + DEBUG ("Creating PCAP object.."); + pcap_obj = pcap_open_live (pcap_device, |