Change the contasnt use to test FADVISE
authorCΓ©dric Villemain <cedric@2ndquadrant.fr>
Tue, 6 Sep 2011 21:51:07 +0000 (23:51 +0200)
committerCΓ©dric Villemain <cedric@2ndquadrant.fr>
Tue, 6 Sep 2011 21:51:07 +0000 (23:51 +0200)
this is used to allow the code to compile on systems without posix_fadvise.
We use the PostgreSQL defined contant, so we don't have to check ourselves

pgfincore.c

index be1cf1617368fd3136464e695d76ebd5dc326e73..afcbde8b5b9dcc6ca55c475334f1a05fbb71896b 100644 (file)
@@ -225,7 +225,7 @@ pgsysconf(PG_FUNCTION_ARGS)
        PG_RETURN_DATUM( HeapTupleGetDatum(tuple) );
 }
 
-#ifdef FIO_HAVE_FADVISE
+#ifdef USE_POSIX_FADVISE
 /*
  * pgfadvise_file
  */
@@ -478,7 +478,7 @@ pgfadvise(PG_FUNCTION_ARGS)
        }
 }
 
-#ifdef FIO_HAVE_FADVISE
+#ifdef USE_POSIX_FADVISE
 /*
  * pgfadvise_file
  */