X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=configure.ac;h=30787101d6d9a7de3db529bf642efe833e0cf847;hb=98a60f6ade1f995cd53716c23e00edfba9f97930;hp=202f370a1994c714f8105907da4a063249c70093;hpb=9e72bd7d22cdb096abe35755a5dbcc5dc7686ee9;p=rrdtool.git diff --git a/configure.ac b/configure.ac index 202f370..3078710 100644 --- a/configure.ac +++ b/configure.ac @@ -72,7 +72,7 @@ char *strchr (), *strrchr (); /* enable posix_fadvise on linux */ #if defined(HAVE_POSIX_FADVISE) && defined(HAVE_FCNTL_H) -#define __USE_XOPEN2K 1 +#define _XOPEN_SOURCE 600 #include #endif @@ -248,7 +248,7 @@ AC_C_BIGENDIAN dnl for each function found we get a definition in config.h dnl of the form HAVE_FUNCTION -AC_CHECK_FUNCS(tzset mbstowcs opendir readdir chdir chroot getuid setlocale strerror strerror_r snprintf vsnprintf fpclass class fp_class isnan memmove strchr mktime getrusage gettimeofday posix_fadvise) +AC_CHECK_FUNCS(tzset mbstowcs opendir readdir chdir chroot getuid setlocale strerror strerror_r snprintf vsnprintf fpclass class fp_class isnan memmove strchr mktime getrusage gettimeofday posix_fadvise madvise) if test "x$enable_mmap" = xyes; then