summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2018-09-13 00:22:11 (GMT)
committerGitHub <noreply@github.com>2018-09-13 00:22:11 (GMT)
commited709d5699716bf7237856dc20aba321e2dfff6d (patch)
tree406228778dc294df0fa12de4e36c93ba54af758b /configure
parentc9a71dd223c4ad200a97aa320aef6bd3d45f8897 (diff)
downloadcpython-ed709d5699716bf7237856dc20aba321e2dfff6d.zip
cpython-ed709d5699716bf7237856dc20aba321e2dfff6d.tar.gz
cpython-ed709d5699716bf7237856dc20aba321e2dfff6d.tar.bz2
bpo-34652: Remove lchmod from the big func checking block. (GH-9247)
A fix for 883702ebb8bbfa749ef0040d1b58d6222bf589ee.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure b/configure
index d341453..ddfd1c4 100755
--- a/configure
+++ b/configure
@@ -11258,7 +11258,7 @@ for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \
getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \
getpriority getresuid getresgid getpwent getpwnam_r getpwuid_r getspnam getspent getsid getwd \
if_nameindex \
- initgroups kill killpg lchmod lchown lockf linkat lstat lutimes mmap \
+ initgroups kill killpg lchown lockf linkat lstat lutimes mmap \
memrchr mbrtowc mkdirat mkfifo \
mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \
posix_fallocate posix_fadvise posix_spawn pread preadv preadv2 \
@@ -11289,10 +11289,16 @@ done
# links. Some libc implementations have a stub lchmod implementation that always
# returns an error.
if test "$MACHDEP" != linux; then
+ for ac_func in lchmod
+do :
ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod"
if test "x$ac_cv_func_lchmod" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LCHMOD 1
+_ACEOF
fi
+done
fi