pkgsrc/sysutils/collectd/patches/patch-src_config.h.in
he 7a41fe9da6 Include sys/rndio.h if it's available to be able to compile the entropy
plugin on newer NetBSD releases (>= 7.99.9, by the looks of it).
No PKGREVISION bump since this is a configure+build fix.
2015-08-14 12:59:04 +00:00

49 lines
1.5 KiB
C

$NetBSD: patch-src_config.h.in,v 1.2 2015/08/14 12:59:04 he Exp $
Optionally define a few vars for NetBSD.
--- src/config.h.in.orig 2015-05-27 07:53:03.000000000 +0000
+++ src/config.h.in
@@ -1246,6 +1246,12 @@
/* Define to 1 if `imr_ifindex' is a member of `struct ip_mreqn'. */
#undef HAVE_STRUCT_IP_MREQN_IMR_IFINDEX
+/* Define to 1 if `p_pid' is a member of `struct kinfo_proc2'. */
+#undef HAVE_STRUCT_KINFO_PROC2_P_PID
+
+/* Define to 1 if `p_uru_maxrss' is a member of `struct kinfo_proc2'. */
+#undef HAVE_STRUCT_KINFO_PROC2_P_URU_MAXRSS
+
/* Define if struct kinfo_proc exists in the FreeBSD variant. */
#undef HAVE_STRUCT_KINFO_PROC_FREEBSD
@@ -1258,6 +1264,9 @@
/* Define to 1 if `ki_rusage' is a member of `struct kinfo_proc'. */
#undef HAVE_STRUCT_KINFO_PROC_KI_RUSAGE
+/* Define if struct kinfo_proc2 exists in the NetBSD variant. */
+#undef HAVE_STRUCT_KINFO_PROC_NETBSD
+
/* Define if struct kinfo_proc exists in the OpenBSD variant. */
#undef HAVE_STRUCT_KINFO_PROC_OPENBSD
@@ -1375,6 +1384,9 @@
/* Define to 1 if you have the <sys/resource.h> header file. */
#undef HAVE_SYS_RESOURCE_H
+/* Define to 1 if you have the <sys/rndio.h> header file. */
+#undef HAVE_SYS_RNDIO_H
+
/* Define to 1 if you have the <sys/select.h> header file. */
#undef HAVE_SYS_SELECT_H
@@ -1507,6 +1519,9 @@
/* True if program is to be compiled for a Linux kernel */
#undef KERNEL_LINUX
+/* True if program is to be compiled for a NetBSD kernel */
+#undef KERNEL_NETBSD
+
/* True if program is to be compiled for an OpenBSD kernel */
#undef KERNEL_OPENBSD