From: Tom Lane Date: Wed, 7 Nov 2018 21:41:42 +0000 (-0500) Subject: Fix inadequate autoconfiscation of copyfile() usage. X-Git-Tag: REL_12_BETA1~1279 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c3e6d5d38699812e047270a711be1926b7f6f396;p=postgresql Fix inadequate autoconfiscation of copyfile() usage. Per buildfarm, HAVE_COPYFILE is not the same thing as HAVE_COPYFILE_H. Add the extra configure test. --- diff --git a/configure b/configure index c76650aaf4..aa341ddf00 100755 --- 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" diff --git a/configure.in b/configure.in index 8b0b6d1e43..30e19097e4 100644 --- a/configure.in +++ b/configure.in @@ -1295,6 +1295,7 @@ AC_HEADER_STDBOOL AC_CHECK_HEADERS(m4_normalize([ atomic.h + copyfile.h crypt.h fp_class.h getopt.h diff --git a/src/bin/pg_upgrade/file.c b/src/bin/pg_upgrade/file.c index 244dd4d88b..69bb683421 100644 --- a/src/bin/pg_upgrade/file.c +++ b/src/bin/pg_upgrade/file.c @@ -18,7 +18,7 @@ #include #include -#ifdef HAVE_COPYFILE +#ifdef HAVE_COPYFILE_H #include #endif #ifdef __linux__ diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in index b1f709358e..6ac75cd02c 100644 --- a/src/include/pg_config.h.in +++ b/src/include/pg_config.h.in @@ -117,6 +117,9 @@ /* Define to 1 if you have the `copyfile' function. */ #undef HAVE_COPYFILE +/* Define to 1 if you have the header file. */ +#undef HAVE_COPYFILE_H + /* Define to 1 if you have the header file. */ #undef HAVE_CRTDEFS_H