summaryrefslogtreecommitdiff
path: root/net/ucd-snmp/patches
diff options
context:
space:
mode:
authoragc <agc>2001-03-14 10:29:42 +0000
committeragc <agc>2001-03-14 10:29:42 +0000
commitc4d36a6d8478956cf585345e6941bb721ce2edfb (patch)
tree7c45ddfa46da6cd7997b906aabfec29bdff2ac8d /net/ucd-snmp/patches
parentf02bcc7232d85d26b966a8fc611eea9756f9440e (diff)
downloadpkgsrc-c4d36a6d8478956cf585345e6941bb721ce2edfb.tar.gz
A very dirty workaround to a compilation problem on NetBSD hosts caused by
configure script problems.
Diffstat (limited to 'net/ucd-snmp/patches')
-rw-r--r--net/ucd-snmp/patches/patch-ai23
1 files changed, 23 insertions, 0 deletions
diff --git a/net/ucd-snmp/patches/patch-ai b/net/ucd-snmp/patches/patch-ai
new file mode 100644
index 00000000000..64c432e808b
--- /dev/null
+++ b/net/ucd-snmp/patches/patch-ai
@@ -0,0 +1,23 @@
+$NetBSD: patch-ai,v 1.1 2001/03/14 10:29:42 agc Exp $
+
+A very quick and dirty workaround to an autoconf problem.
+
+The GNU configure script gets the HAVE_SYS_DISKLABEL_H wrong on NetBSD
+systems after January 2001, since the inclusion of <sys/disklabel.h>
+will only compile cleanly if <sys/types.h> has been included
+previously, which the configure script doesn't do. Hence
+HAVE_SYS_DISKLABEL_H goes undefined.
+
+For now, make it work on NetBSD.
+
+--- agent/mibgroup/host/hr_disk.c 2001/03/14 10:20:40 1.1
++++ agent/mibgroup/host/hr_disk.c 2001/03/14 10:21:00
+@@ -41,7 +41,7 @@
+ #if HAVE_LINUX_HDREG_H
+ #include <linux/hdreg.h>
+ #endif
+-#if HAVE_SYS_DISKLABEL_H
++#if defined(__NetBSD__) || HAVE_SYS_DISKLABEL_H
+ #define DKTYPENAMES
+ #include <sys/disklabel.h>
+ #endif