gh-140239: Check statx availability only on Linux (#140249)

This commit is contained in:
Ayappan Perumal 2025-10-17 23:10:16 +05:30 committed by GitHub
parent fbf0843e39
commit 92025ea2c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 18 additions and 7 deletions

17
configure generated vendored
View file

@ -20191,12 +20191,6 @@ if test "x$ac_cv_func_splice" = xyes
then :
printf "%s\n" "#define HAVE_SPLICE 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "statx" "ac_cv_func_statx"
if test "x$ac_cv_func_statx" = xyes
then :
printf "%s\n" "#define HAVE_STATX 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
if test "x$ac_cv_func_strftime" = xyes
@ -20398,6 +20392,17 @@ then :
fi
# Check statx availability in Linux
if test "$MACHDEP" = "linux"; then
ac_fn_c_check_func "$LINENO" "statx" "ac_cv_func_statx"
if test "x$ac_cv_func_statx" = xyes
then :
printf "%s\n" "#define HAVE_STATX 1" >>confdefs.h
fi
fi
# Force lchmod off for Linux. Linux disallows changing the mode of symbolic
# links. Some libc implementations have a stub lchmod implementation that always
# returns an error.