Skip to content

Commit c3e6d5d

Browse files
committed
Fix inadequate autoconfiscation of copyfile() usage.
Per buildfarm, HAVE_COPYFILE is not the same thing as HAVE_COPYFILE_H. Add the extra configure test.
1 parent 54ad728 commit c3e6d5d

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12712,7 +12712,7 @@ $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
1271212712
fi
1271312713

1271412714

12715-
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
12715+
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
1271612716
do :
1271712717
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
1271812718
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"

configure.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,6 +1295,7 @@ AC_HEADER_STDBOOL
12951295

12961296
AC_CHECK_HEADERS(m4_normalize([
12971297
atomic.h
1298+
copyfile.h
12981299
crypt.h
12991300
fp_class.h
13001301
getopt.h

src/bin/pg_upgrade/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
#include <sys/stat.h>
2020
#include <fcntl.h>
21-
#ifdef HAVE_COPYFILE
21+
#ifdef HAVE_COPYFILE_H
2222
#include <copyfile.h>
2323
#endif
2424
#ifdef __linux__

src/include/pg_config.h.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@
117117
/* Define to 1 if you have the `copyfile' function. */
118118
#undef HAVE_COPYFILE
119119

120+
/* Define to 1 if you have the <copyfile.h> header file. */
121+
#undef HAVE_COPYFILE_H
122+
120123
/* Define to 1 if you have the <crtdefs.h> header file. */
121124
#undef HAVE_CRTDEFS_H
122125

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy