* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
	Define it for newer kernels.
This commit is contained in:
Andreas Jaeger 2000-05-24 15:33:21 +00:00
parent ff31ba59a7
commit a074fa3c2b
3 changed files with 11 additions and 2 deletions

View File

@ -2,6 +2,9 @@
* intl/Makefile: Run gettext-test only if msgfmt is available. * intl/Makefile: Run gettext-test only if msgfmt is available.
* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
Define it for newer kernels.
2000-05-23 Ulrich Drepper <drepper@redhat.com> 2000-05-23 Ulrich Drepper <drepper@redhat.com>
* elf/dl-sym.c: Minor cleanups. * elf/dl-sym.c: Minor cleanups.

View File

@ -22,7 +22,7 @@
#ifndef PT_EI #ifndef PT_EI
# define PT_EI extern inline # define PT_EI extern inline
#endif #endif
#include "kernel-features.h"
/* Get some notion of the current stack. Need not be exactly the top /* Get some notion of the current stack. Need not be exactly the top
of the stack, just something somewhere in the current frame. */ of the stack, just something somewhere in the current frame. */
@ -62,5 +62,6 @@ __compare_and_swap (long int *p, long int oldval, long int newval)
return ret; return ret;
} }
#if __ASSUME_LDT_WORKS > 0
#include "../useldt.h" #include "../useldt.h"
#endif

View File

@ -117,3 +117,8 @@
# define __ASSUME_SETRESUID_SYSCALL 1 # define __ASSUME_SETRESUID_SYSCALL 1
# endif # endif
#endif #endif
/* We can use the LDTs for threading with Linux 2.3.99 and newer. */
#if __LINUX_KERNEL_VERSION >= 131939
# define __ASSUME_LDT_WORKS 1
#endif