bpo-34652: Remove lchmod from the big func checking block. (GH-9247) · python/cpython@35c94c7 (original) (raw)

2 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -11327,7 +11327,7 @@ for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \
11327 11327 getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \
11328 11328 getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \
11329 11329 if_nameindex \
11330 - initgroups kill killpg lchmod lchown lockf linkat lstat lutimes mmap \
11330 + initgroups kill killpg lchown lockf linkat lstat lutimes mmap \
11331 11331 memrchr mbrtowc mkdirat mkfifo \
11332 11332 mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \
11333 11333 posix_fallocate posix_fadvise posix_spawn pread preadv preadv2 \
@@ -11358,10 +11358,16 @@ done
11358 11358 # links. Some libc implementations have a stub lchmod implementation that always
11359 11359 # returns an error.
11360 11360 if test "$MACHDEP" != linux; then
11361 +for ac_func in lchmod
11362 +do :
11361 11363 ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod"
11362 11364 if test "x$ac_cv_func_lchmod" = xyes; then :
11365 + cat >>confdefs.h <<_ACEOF
11366 +#define HAVE_LCHMOD 1
11367 +_ACEOF
11363 11368
11364 11369 fi
11370 +done
11365 11371
11366 11372 fi
11367 11373
Original file line number Diff line number Diff line change
@@ -3503,7 +3503,7 @@ AC_CHECK_FUNCS(alarm accept4 setitimer getitimer bind_textdomain_codeset chown \
3503 3503 getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \
3504 3504 getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \
3505 3505 if_nameindex \
3506 -initgroups kill killpg lchmod lchown lockf linkat lstat lutimes mmap \
3506 +initgroups kill killpg lchown lockf linkat lstat lutimes mmap \
3507 3507 memrchr mbrtowc mkdirat mkfifo \
3508 3508 mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \
3509 3509 posix_fallocate posix_fadvise posix_spawn pread preadv preadv2 \
@@ -3523,7 +3523,7 @@ AC_CHECK_FUNCS(alarm accept4 setitimer getitimer bind_textdomain_codeset chown \
3523 3523 # links. Some libc implementations have a stub lchmod implementation that always
3524 3524 # returns an error.
3525 3525 if test "$MACHDEP" != linux; then
3526 -AC_CHECK_FUNC(lchmod)
3526 +AC_CHECK_FUNCS(lchmod)
3527 3527 fi
3528 3528
3529 3529 AC_CHECK_DECL(dirfd,