Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 80aebd5

Browse filesBrowse files
[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 11c055f)
1 parent da151fd commit 80aebd5
Copy full SHA for 80aebd5

File tree

Expand file treeCollapse file tree

5 files changed

+12
-2
lines changed
Filter options
Expand file treeCollapse file tree

5 files changed

+12
-2
lines changed
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Check for `linux/limits.h` before including it in `Modules/posixmodule.c`.

‎Modules/posixmodule.c

Copy file name to clipboardExpand all lines: Modules/posixmodule.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ corresponding Unix manual entries for more information on calls.");
286286
# undef HAVE_SCHED_SETAFFINITY
287287
#endif
288288

289-
#if defined(HAVE_SYS_XATTR_H) && defined(__linux__) && !defined(__FreeBSD_kernel__) && !defined(__GNU__)
289+
#if defined(HAVE_SYS_XATTR_H) && defined(HAVE_LINUX_LIMITS_H) && !defined(__FreeBSD_kernel__) && !defined(__GNU__)
290290
# define USE_XATTRS
291291
# include <linux/limits.h> // Needed for XATTR_SIZE_MAX on musl libc.
292292
#endif

‎configure

Copy file name to clipboardExpand all lines: configure
+6Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎configure.ac

Copy file name to clipboardExpand all lines: configure.ac
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2848,7 +2848,7 @@ AC_DEFINE([STDC_HEADERS], [1],
28482848
# checks for header files
28492849
AC_CHECK_HEADERS([ \
28502850
alloca.h asm/types.h bluetooth.h conio.h crypt.h direct.h dlfcn.h endian.h errno.h fcntl.h grp.h \
2851-
ieeefp.h io.h langinfo.h libintl.h libutil.h linux/auxvec.h sys/auxv.h linux/fs.h linux/memfd.h \
2851+
ieeefp.h io.h langinfo.h libintl.h libutil.h linux/auxvec.h sys/auxv.h linux/fs.h linux/limits.h linux/memfd.h \
28522852
linux/random.h linux/soundcard.h \
28532853
linux/tipc.h linux/wait.h netdb.h net/ethernet.h netinet/in.h netpacket/packet.h poll.h process.h pthread.h pty.h \
28542854
sched.h setjmp.h shadow.h signal.h spawn.h stropts.h sys/audioio.h sys/bsdtty.h sys/devpoll.h \

‎pyconfig.h.in

Copy file name to clipboardExpand all lines: pyconfig.h.in
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,9 @@
727727
/* Define to 1 if you have the <linux/fs.h> header file. */
728728
#undef HAVE_LINUX_FS_H
729729

730+
/* Define to 1 if you have the <linux/limits.h> header file. */
731+
#undef HAVE_LINUX_LIMITS_H
732+
730733
/* Define to 1 if you have the <linux/memfd.h> header file. */
731734
#undef HAVE_LINUX_MEMFD_H
732735

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.