Don't try to call posix_fadvise() unless <fcntl.h> supplies a declaration
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 18 Jun 2006 18:30:21 +0000 (18:30 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 18 Jun 2006 18:30:21 +0000 (18:30 +0000)
commit03397ad4cf391a4822897cf9904da63b48d9a7f4
tree1db84883e2b2cde8ad3c8ac6848552d75d792fb8
parent5f745bb48670474a4a729d876ab4dabbcac8a5dd
Don't try to call posix_fadvise() unless <fcntl.h> supplies a declaration
for it.  Hopefully will fix core dump evidenced by some buildfarm members
since fadvise patch went in.  The actual definition of the function is not
ABI-compatible with compiler's default assumption in the absence of any
declaration, so it's clearly unsafe to try to call it without seeing a
declaration.
configure
configure.in
src/backend/access/transam/xlog.c
src/include/pg_config.h.in