From 8d750770088aae7bc40fb5f2c49f84c8df8d42af 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@1238 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/program/configure.ac b/program/configure.ac index a889daae..79124364 100644 --- a/program/configure.ac +++ b/program/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.30.2