Fix build on DragonFly. From PR 39566.

This commit is contained in:
joerg 2008-09-18 13:40:10 +00:00
parent bc21fd9383
commit b35ef6ce2f
2 changed files with 22 additions and 1 deletions

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.49 2008/09/08 12:58:09 adam Exp $
$NetBSD: distinfo,v 1.50 2008/09/18 13:40:10 joerg Exp $
SHA1 (net-snmp-5.4.2.tar.gz) = 5b69da7d60bbc1092b61992f2d9ccb1051377ec6
RMD160 (net-snmp-5.4.2.tar.gz) = 8c0cfd259893023c2c98fa68746adb48555d7788
@ -21,6 +21,7 @@ SHA1 (patch-db) = bec0bee1860ee42ba64b4c07df2280e206eaf582
SHA1 (patch-dc) = 3f668032cbef42b44ee908b3c973af619ce0a689
SHA1 (patch-dd) = 08da0d1da485959549ac461e5cbb7030f800e643
SHA1 (patch-de) = b505cef8542b30b3d28f5b3e61c473076e242d24
SHA1 (patch-df) = 2509d2dbf4fab3174e7719fa260505961dbbd352
SHA1 (patch-dg) = 6e6e396add0613dd76e3b8618008a7ebf8103c7c
SHA1 (patch-dh) = c9a776d6574df008adae52a2f08930e0662f70b3
SHA1 (patch-di) = e0e1039c1adbf10ae56c50998ff74b39193e7348

View file

@ -0,0 +1,20 @@
$NetBSD: patch-df,v 1.3 2008/09/18 13:40:10 joerg Exp $
--- agent/mibgroup/hardware/cpu.h.orig 2008-09-16 15:31:44 +0300
+++ agent/mibgroup/hardware/cpu.h 2008-09-16 15:12:05 +0300
@@ -12,12 +12,12 @@ config_require(hardware/cpu/cpu_pcp)
#elif defined(irix6)
config_require(hardware/cpu/cpu_sysinfo)
+#elif (defined(freebsd2) || defined(freebsd3) || defined(dragonfly))
+config_require(hardware/cpu/cpu_nlist)
+
#elif (defined(netbsd) || defined(netbsd1) || defined(netbsdelf) || defined(netbsdelf2)|| defined(netbsdelf3) || defined(openbsd2) || defined(openbsd3) || defined(openbsd4) || defined(freebsd4) || defined(freebsd5) || defined(freebsd6))
config_require(hardware/cpu/cpu_sysctl)
-#elif (defined(freebsd2) || defined(freebsd3))
-config_require(hardware/cpu/cpu_nlist)
-
#elif (defined(aix4) || defined(aix5) || defined(aix6))
config_require(hardware/cpu/cpu_perfstat)