/* realloc does not support NULL as argument */
#undef NO_NULL_REALLOC
-/* lets enable madvise defines in netbsd */
+/* lets enable madvise defines in NetBSD */
#if defined(__NetBSD__)
# if !defined(_NETBSD_SOURCE)
# define _NETBSD_SOURCE
AH_BOTTOM([
/* make sure that we pickup the correct stuff from all headers */
-#define _XOPEN_SOURCE 600
#ifdef HAVE_FEATURES_H
+#define _XOPEN_SOURCE 600
+#define _BSD_SOURCE 1
# include <features.h>
#endif