]> granicus.if.org Git - postgresql/commitdiff
Fix inadequate autoconfiscation of copyfile() usage.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 7 Nov 2018 21:41:42 +0000 (16:41 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 7 Nov 2018 21:41:42 +0000 (16:41 -0500)
Per buildfarm, HAVE_COPYFILE is not the same thing as HAVE_COPYFILE_H.
Add the extra configure test.

configure
configure.in
src/bin/pg_upgrade/file.c
src/include/pg_config.h.in

index c76650aaf4ed0015599fcc5c7486f22b705f0ec8..aa341ddf000483a46a80844ea4c8d2ead49eecc5 100755 (executable)
--- a/configure
+++ b/configure
@@ -12712,7 +12712,7 @@ $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
 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 :
   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"
index 8b0b6d1e43f9b84a498a1764ed7215d827b1b244..30e19097e421237c51662921ddadfd1c038eb967 100644 (file)
@@ -1295,6 +1295,7 @@ AC_HEADER_STDBOOL
 
 AC_CHECK_HEADERS(m4_normalize([
        atomic.h
+       copyfile.h
        crypt.h
        fp_class.h
        getopt.h
index 244dd4d88b5973b71373cc01fb3b8f1e71337b49..69bb683421bc14aaa09ddeab72d075f533fdd454 100644 (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__
index b1f709358e4c819f15dc540e3ea7fe9e30cf54ac..6ac75cd02cce22e6b5808642aac0deff14343f34 100644 (file)
 /* 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