Skip to content

Commit 802bd11

Browse files
committed
gh-140239: Check statx availability only in Linux platforms
1 parent 67c98ad commit 802bd11

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

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)