Skip to content

Commit 92025ea

Browse files
authored
pythongh-140239: Check statx availability only on Linux (python#140249)
1 parent fbf0843 commit 92025ea

File tree

3 files changed

+18
-7
lines changed

3 files changed

+18
-7
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Check ``statx`` availability only in Linux platforms

configure

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

configure.ac

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5251,12 +5251,17 @@ AC_CHECK_FUNCS([ \
52515251
setitimer setlocale setpgid setpgrp setpriority setregid setresgid \
52525252
setresuid setreuid setsid setuid setvbuf shutdown sigaction sigaltstack \
52535253
sigfillset siginterrupt sigpending sigrelse sigtimedwait sigwait \
5254-
sigwaitinfo snprintf splice statx strftime strlcpy strsignal symlinkat sync \
5254+
sigwaitinfo snprintf splice strftime strlcpy strsignal symlinkat sync \
52555255
sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile \
52565256
tmpnam tmpnam_r truncate ttyname_r umask uname unlinkat unlockpt utimensat utimes vfork \
52575257
wait wait3 wait4 waitid waitpid wcscoll wcsftime wcsxfrm wmemcmp writev \
52585258
])
52595259

5260+
# Check statx availability in Linux
5261+
if test "$MACHDEP" = "linux"; then
5262+
AC_CHECK_FUNCS([statx])
5263+
fi
5264+
52605265
# Force lchmod off for Linux. Linux disallows changing the mode of symbolic
52615266
# links. Some libc implementations have a stub lchmod implementation that always
52625267
# returns an error.

0 commit comments

Comments
 (0)