diff options
author | justdan6 <134341009+justdan6@users.noreply.github.com> | 2023-07-28 23:36:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-28 23:36:54 (GMT) |
commit | 4049c5d6f85627f117e9be6a1729a17fce899645 (patch) | |
tree | 7007b9b4d1bec40b531d40ca7a78733b5048c248 /Modules | |
parent | c3432523d13dbbabe58bd0a13747b801d52e4f5a (diff) | |
download | cpython-4049c5d6f85627f117e9be6a1729a17fce899645.zip cpython-4049c5d6f85627f117e9be6a1729a17fce899645.tar.gz cpython-4049c5d6f85627f117e9be6a1729a17fce899645.tar.bz2 |
[3.11] gh-106881: Check for linux/limits.h before including it (#107397) (#107415)
* [3.11] 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>
(cherry picked from commit 11c055f5ff1a353de6d2e77f2af24aaa782878ba)
* Fix sphinx-lint error in NEWS entry
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 c000a32..9d42288 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -280,7 +280,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 |