Code

rules: Work around #673431 (kvm.h requires sys/types.h).
[pkg-collectd.git] / debian / rules
index b75ccc7ef311b3f00726f4a77b7eda1f08b9157d..be53f76286579017bc1cbc855de2cce0705dcaf7 100755 (executable)
@@ -100,6 +100,10 @@ endif
 
 # These plugins have not been ported to FreeBSD yet.
 ifneq (,$(filter kfreebsd-i386 kfreebsd-amd64, $(DEB_BUILD_ARCH)))
+       # Work-around an incomplete check for kvm functionality
+       CPPFLAGS  += -DHAVE_STRUCT_KINFO_PROC_FREEBSD
+       confflags += --enable-processes=force
+
        confflags += \
                --disable-battery \
                --disable-conntrack \