mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
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>
This commit is contained in:
parent
cf63df88d3
commit
11c055f5ff
5 changed files with 12 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue