1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Move Linux kernel version conditionals to kernel-features.h.

This commit is contained in:
Joseph Myers
2012-08-10 15:53:27 +00:00
parent 77480c6ba5
commit 121dce05fe
5 changed files with 33 additions and 10 deletions

View File

@ -210,6 +210,13 @@
# define __ASSUME_O_CLOEXEC 1
#endif
/* From 2.6.23 onwards the value of ARG_MAX depends on the stack
size. */
#define __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL 0x020617
#if __LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL
# define __ASSUME_ARG_MAX_STACK_BASED 1
#endif
/* Support for ADJ_OFFSET_SS_READ was added in 2.6.24. */
#if __LINUX_KERNEL_VERSION >= 0x020618
# define __ASSUME_ADJ_OFFSET_SS_READ 1