summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorjustdan6 <134341009+justdan6@users.noreply.github.com>2023-07-28 23:29:31 (GMT)
committerGitHub <noreply@github.com>2023-07-28 23:29:31 (GMT)
commit80aebd54c8c562d3d318c124ec735c5bf7f81d65 (patch)
treee94acb9646354421354aec9be31ddf202c37c233 /Modules/posixmodule.c
parentda151fdc7ac4a6d30740e4ef18071936a136790d (diff)
downloadcpython-80aebd54c8c562d3d318c124ec735c5bf7f81d65.zip
cpython-80aebd54c8c562d3d318c124ec735c5bf7f81d65.tar.gz
cpython-80aebd54c8c562d3d318c124ec735c5bf7f81d65.tar.bz2
[3.12] gh-106881: Check for linux/limits.h before including it (#107397) (#107414)
* Check for linux/limits.h before including it Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> (cherry picked from commit 11c055f5ff1a353de6d2e77f2af24aaa782878ba)
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index fde1e4f..342f393 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -286,7 +286,7 @@ corresponding Unix manual entries for more information on calls.");
# undef HAVE_SCHED_SETAFFINITY
#endif
-#if defined(HAVE_SYS_XATTR_H) && defined(__linux__) && !defined(__FreeBSD_kernel__) && !defined(__GNU__)
+#if defined(HAVE_SYS_XATTR_H) && defined(HAVE_LINUX_LIMITS_H) && !defined(__FreeBSD_kernel__) && !defined(__GNU__)
# define USE_XATTRS
# include <linux/limits.h> // Needed for XATTR_SIZE_MAX on musl libc.
#endif