From: oetiker Date: Tue, 20 Nov 2007 22:22:31 +0000 (+0000) Subject: enable madvise defines in netbsd X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8d750770088aae7bc40fb5f2c49f84c8df8d42af;p=rrdtool-all.git enable madvise defines in netbsd git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1238 a5681a0c-68f1-0310-ab6d-d61299d08faa --- 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([