diff options
Diffstat (limited to 'net/ucd-snmp/patches/patch-ai')
-rw-r--r-- | net/ucd-snmp/patches/patch-ai | 23 |
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 |