Code

enable madvise defines in netbsd
[rrdtool.git] / configure.ac
index a889daae27f1c563bd06bffa5def6305c27faee7..791243646d9f0a64efda93a3f1ffa5b1cfa29185 100644 (file)
@@ -49,6 +49,13 @@ AH_TOP([
 /* 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([