aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/collectd5
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2008-09-09 21:50:49 +0800
committergahr <gahr@FreeBSD.org>2008-09-09 21:50:49 +0800
commit32f58cc8e049e2b4bd58d791def2528870889b7e (patch)
tree86263a7bc9e91f9b81bde8c3c9f11f793a35c4ca /net-mgmt/collectd5
parent458d783d6548cfbed88462989bb2d52c927e6795 (diff)
downloadfreebsd-ports-graphics-32f58cc8e049e2b4bd58d791def2528870889b7e.tar.gz
freebsd-ports-graphics-32f58cc8e049e2b4bd58d791def2528870889b7e.tar.zst
freebsd-ports-graphics-32f58cc8e049e2b4bd58d791def2528870889b7e.zip
- Unbreak on sparc64
PR: 122381 Approved by: portmgr
Diffstat (limited to 'net-mgmt/collectd5')
-rw-r--r--net-mgmt/collectd5/files/patch-src__dns.c18
1 files changed, 18 insertions, 0 deletions
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 00000000000..fb045049b25
--- /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,