Hi,

I was getting:
rrd_create.c: In function 'rrd_create_fn':
rrd_create.c:703: warning: implicit declaration of function 'posix_fadvise'
rrd_create.c:703: warning: nested extern declaration of 'posix_fadvise'
rrd_create.c:703: error: 'POSIX_FADV_DONTNEED' undeclared (first use in this 
function)

Attached patch fixes this by defining the appropriate XOPEN before
including fcntl.h.

Please apply.
TIA,
Bernhard
Index: configure.ac
===================================================================
--- configure.ac	(revision 1064)
+++ configure.ac	(working copy)
@@ -72,8 +72,8 @@ char *strchr (), *strrchr ();
 
 /* enable posix_fadvise on linux */
 #if defined(HAVE_POSIX_FADVISE) && defined(HAVE_FCNTL_H)
-#include <fcntl.h>
 #define __USE_XOPEN2K 1
+#include <fcntl.h>
 #endif
 
 #ifdef NO_NULL_REALLOC
_______________________________________________
rrd-developers mailing list
rrd-developers@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers

Reply via email to