Commit c3e6d5d3 authored by Tom Lane's avatar Tom Lane

Fix inadequate autoconfiscation of copyfile() usage.

Per buildfarm, HAVE_COPYFILE is not the same thing as HAVE_COPYFILE_H.
Add the extra configure test.
parent 54ad7282
...@@ -12712,7 +12712,7 @@ $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h ...@@ -12712,7 +12712,7 @@ $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
fi fi
for ac_header in atomic.h crypt.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h mbarrier.h poll.h sys/epoll.h sys/ipc.h sys/prctl.h sys/procctl.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/sockio.h sys/tas.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h for ac_header in atomic.h copyfile.h crypt.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h mbarrier.h poll.h sys/epoll.h sys/ipc.h sys/prctl.h sys/procctl.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/sockio.h sys/tas.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h
do : do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
......
...@@ -1295,6 +1295,7 @@ AC_HEADER_STDBOOL ...@@ -1295,6 +1295,7 @@ AC_HEADER_STDBOOL
AC_CHECK_HEADERS(m4_normalize([ AC_CHECK_HEADERS(m4_normalize([
atomic.h atomic.h
copyfile.h
crypt.h crypt.h
fp_class.h fp_class.h
getopt.h getopt.h
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#ifdef HAVE_COPYFILE #ifdef HAVE_COPYFILE_H
#include <copyfile.h> #include <copyfile.h>
#endif #endif
#ifdef __linux__ #ifdef __linux__
......
...@@ -117,6 +117,9 @@ ...@@ -117,6 +117,9 @@
/* Define to 1 if you have the `copyfile' function. */ /* Define to 1 if you have the `copyfile' function. */
#undef HAVE_COPYFILE #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. */ /* Define to 1 if you have the <crtdefs.h> header file. */
#undef HAVE_CRTDEFS_H #undef HAVE_CRTDEFS_H
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment