1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Fix inadequate autoconfiscation of copyfile() usage.

Per buildfarm, HAVE_COPYFILE is not the same thing as HAVE_COPYFILE_H.
Add the extra configure test.
This commit is contained in:
Tom Lane
2018-11-07 16:41:42 -05:00
parent 54ad7282fe
commit c3e6d5d386
4 changed files with 6 additions and 2 deletions

View File

@ -18,7 +18,7 @@
#include <sys/stat.h>
#include <fcntl.h>
#ifdef HAVE_COPYFILE
#ifdef HAVE_COPYFILE_H
#include <copyfile.h>
#endif
#ifdef __linux__

View File

@ -117,6 +117,9 @@
/* Define to 1 if you have the `copyfile' function. */
#undef HAVE_COPYFILE
/* Define to 1 if you have the <copyfile.h> header file. */
#undef HAVE_COPYFILE_H
/* Define to 1 if you have the <crtdefs.h> header file. */
#undef HAVE_CRTDEFS_H