projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed NetBSD spelling
[rrdtool.git]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index
a889daa
..
27718fb
100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-49,12
+49,20
@@
AH_TOP([
/* realloc does not support NULL as argument */
#undef NO_NULL_REALLOC
/* 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([
/* make sure that we pickup the correct stuff from all headers */
])
AH_BOTTOM([
/* make sure that we pickup the correct stuff from all headers */
-#define _XOPEN_SOURCE 600
#ifdef HAVE_FEATURES_H
#ifdef HAVE_FEATURES_H
+#define _XOPEN_SOURCE 600
+#define _BSD_SOURCE 1
# include <features.h>
#endif
# include <features.h>
#endif
@@
-84,6
+92,7
@@
AH_BOTTOM([
#ifdef HAVE_SYS_MMAN_H
# include <sys/mman.h>
#endif
#ifdef HAVE_SYS_MMAN_H
# include <sys/mman.h>
#endif
+
#if !defined HAVE_MADVISE && defined HAVE_POSIX_MADVISE
/* use posix_madvise family */
# define madvise posix_madvise
#if !defined HAVE_MADVISE && defined HAVE_POSIX_MADVISE
/* use posix_madvise family */
# define madvise posix_madvise