diff --git a/configure.ac b/configure.ac
index a889daae27f1c563bd06bffa5def6305c27faee7..791243646d9f0a64efda93a3f1ffa5b1cfa29185 100644 (file)
--- a/configure.ac
+++ b/configure.ac
/* realloc does not support NULL as argument */
#undef NO_NULL_REALLOC
+/* lets enable madvise defines in netbsd */
+#if defined(__NetBSD__)
+# if !defined(_NETBSD_SOURCE)
+# define _NETBSD_SOURCE
+# endif
+#endif
+
])
AH_BOTTOM([