From cd4059c82310f02adfc3ebfa15a25fedb830c90b Mon Sep 17 00:00:00 2001 From: oetiker Date: Tue, 20 Nov 2007 22:22:31 +0000 Subject: [PATCH] enable madvise defines in netbsd git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1238 a5681a0c-68f1-0310-ab6d-d61299d08faa --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index a889daa..7912436 100644 --- a/configure.ac +++ b/configure.ac @@ -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([ -- 2.11.0