diff options
author | justdan6 <134341009+justdan6@users.noreply.github.com> | 2023-07-28 22:08:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-28 22:08:43 (GMT) |
commit | 11c055f5ff1a353de6d2e77f2af24aaa782878ba (patch) | |
tree | 97823095e5ce4284e54e9735c29ae71167426c43 /Modules | |
parent | cf63df88d38ec3e6ebd44ed184312df9f07f9782 (diff) | |
download | cpython-11c055f5ff1a353de6d2e77f2af24aaa782878ba.zip cpython-11c055f5ff1a353de6d2e77f2af24aaa782878ba.tar.gz cpython-11c055f5ff1a353de6d2e77f2af24aaa782878ba.tar.bz2 |
gh-106881: Check for linux/limits.h before including it (#107397)
* Check for linux/limits.h before including it
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/posixmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index bab2ac2..a42e41c 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -285,7 +285,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 |