bpo-34652: Remove lchmod from the big func checking block. (GH-9247) · python/cpython@ed709d5 (original) (raw)
2 files changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -11258,7 +11258,7 @@ for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ | ||
11258 | 11258 | getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \ |
11259 | 11259 | getpriority getresuid getresgid getpwent getpwnam_r getpwuid_r getspnam getspent getsid getwd \ |
11260 | 11260 | if_nameindex \ |
11261 | - initgroups kill killpg lchmod lchown lockf linkat lstat lutimes mmap \ | |
11261 | + initgroups kill killpg lchown lockf linkat lstat lutimes mmap \ | |
11262 | 11262 | memrchr mbrtowc mkdirat mkfifo \ |
11263 | 11263 | mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \ |
11264 | 11264 | posix_fallocate posix_fadvise posix_spawn pread preadv preadv2 \ |
@@ -11289,10 +11289,16 @@ done | ||
11289 | 11289 | # links. Some libc implementations have a stub lchmod implementation that always |
11290 | 11290 | # returns an error. |
11291 | 11291 | if test "$MACHDEP" != linux; then |
11292 | +for ac_func in lchmod | |
11293 | +do : | |
11292 | 11294 | ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod" |
11293 | 11295 | if test "x$ac_cv_func_lchmod" = xyes; then : |
11296 | + cat >>confdefs.h <<_ACEOF | |
11297 | +#define HAVE_LCHMOD 1 | |
11298 | +_ACEOF | |
11294 | 11299 | |
11295 | 11300 | fi |
11301 | +done | |
11296 | 11302 | |
11297 | 11303 | fi |
11298 | 11304 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -3438,7 +3438,7 @@ AC_CHECK_FUNCS(alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ | ||
3438 | 3438 | getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \ |
3439 | 3439 | getpriority getresuid getresgid getpwent getpwnam_r getpwuid_r getspnam getspent getsid getwd \ |
3440 | 3440 | if_nameindex \ |
3441 | -initgroups kill killpg lchmod lchown lockf linkat lstat lutimes mmap \ | |
3441 | +initgroups kill killpg lchown lockf linkat lstat lutimes mmap \ | |
3442 | 3442 | memrchr mbrtowc mkdirat mkfifo \ |
3443 | 3443 | mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \ |
3444 | 3444 | posix_fallocate posix_fadvise posix_spawn pread preadv preadv2 \ |
@@ -3458,7 +3458,7 @@ AC_CHECK_FUNCS(alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ | ||
3458 | 3458 | # links. Some libc implementations have a stub lchmod implementation that always |
3459 | 3459 | # returns an error. |
3460 | 3460 | if test "$MACHDEP" != linux; then |
3461 | -AC_CHECK_FUNC(lchmod) | |
3461 | +AC_CHECK_FUNCS(lchmod) | |
3462 | 3462 | fi |
3463 | 3463 | |
3464 | 3464 | AC_CHECK_DECL(dirfd, |