Skip to content

Commit 70ae8ab

Browse files
committed
Use a different autoconf test for dup3/pipe2.
1 parent 0378698 commit 70ae8ab

2 files changed

Lines changed: 86 additions & 14 deletions

File tree

‎configure‎

Lines changed: 82 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎configure.ac‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5528,7 +5528,7 @@ fi
55285528
AC_CHECK_FUNCS([ \
55295529
accept4 alarm bind_textdomain_codeset chmod chown clearenv \
55305530
clock closefrom close_range confstr \
5531-
copy_file_range ctermid dladdr dup dup3 execv explicit_bzero explicit_memset \
5531+
copy_file_range ctermid dladdr dup execv explicit_bzero explicit_memset \
55325532
faccessat fchmod fchmodat fchown fchownat fdopendir fdwalk fexecve \
55335533
fork fork1 fpathconf fstatat ftime ftruncate futimens futimes futimesat \
55345534
gai_strerror getdents64 getegid geteuid getgid getgrent getgrgid getgrgid_r \
@@ -5539,7 +5539,7 @@ AC_CHECK_FUNCS([ \
55395539
if_nametoindex initgroups kill killpg lchown linkat \
55405540
lockf lstat lutimes madvise mbrtowc memrchr mkdirat mkfifo mkfifoat \
55415541
mknod mknodat mktime mmap mremap nice openat opendir pathconf pause \
5542-
pidfd_open pidfd_getfd pidfd_send_signal pipe pipe2 \
5542+
pidfd_open pidfd_getfd pidfd_send_signal pipe \
55435543
plock poll ppoll posix_fadvise posix_fallocate posix_openpt posix_spawn posix_spawnp \
55445544
posix_spawn_file_actions_addclosefrom_np \
55455545
pread preadv preadv2 process_vm_readv \
@@ -5590,7 +5590,9 @@ AC_CHECK_DECL([dirfd],
55905590
# For some functions, having a definition is not sufficient, since
55915591
# we want to take their address.
55925592
PY_CHECK_FUNC([chroot], [@%:@include <unistd.h>])
5593+
PY_CHECK_FUNC([dup3], [@%:@include <unistd.h>])
55935594
PY_CHECK_FUNC([link], [@%:@include <unistd.h>])
5595+
PY_CHECK_FUNC([pipe2], [@%:@include <unistd.h>])
55945596
PY_CHECK_FUNC([symlink], [@%:@include <unistd.h>])
55955597
PY_CHECK_FUNC([fchdir], [@%:@include <unistd.h>])
55965598
PY_CHECK_FUNC([fsync], [@%:@include <unistd.h>])

0 commit comments

Comments
 (0)