mirror of
https://sourceware.org/git/glibc.git
synced 2025-10-12 19:04:54 +03:00
[BZ #406]
2004-10-18 Roland McGrath <roland@redhat.com> [BZ #406] * Makefile (linuxthreads-CPPFLAGS): New variable; adds -DIS_IN_linuxthreads=1. * sysdeps/i386/tls.h: Protect "useldt.h" with [!IS_IN_linuxthreads && !DO_MODIFY_LDT]. * sysdeps/i386/i686/pt-machine.h: Revert last change.
This commit is contained in:
@@ -65,6 +65,8 @@ libpthread-static-only-routines = pthread_atfork
|
|||||||
|
|
||||||
libpthread-nonshared = pthread_atfork
|
libpthread-nonshared = pthread_atfork
|
||||||
|
|
||||||
|
linuxthreads-CPPFLAGS = -DIS_IN_linuxthreads=1
|
||||||
|
|
||||||
CFLAGS-pthread_atfork.c = -DNOT_IN_libc
|
CFLAGS-pthread_atfork.c = -DNOT_IN_libc
|
||||||
|
|
||||||
nodelete-yes = -Wl,--enable-new-dtags,-z,nodelete
|
nodelete-yes = -Wl,--enable-new-dtags,-z,nodelete
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
/* Machine-dependent pthreads configuration and inline functions.
|
/* Machine-dependent pthreads configuration and inline functions.
|
||||||
i686 version.
|
i686 version.
|
||||||
Copyright (C) 1996-2001, 2002, 2003, 2004 Free Software Foundation, Inc.
|
Copyright (C) 1996-2001, 2002, 2003 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Richard Henderson <rth@tamu.edu>.
|
Contributed by Richard Henderson <rth@tamu.edu>.
|
||||||
|
|
||||||
@@ -69,9 +69,7 @@ __compare_and_swap (long int *p, long int oldval, long int newval)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* If tls.h was included, it will include useldt.h after defining USE_TLS.
|
#if __ASSUME_LDT_WORKS > 0
|
||||||
We don't want to include it here first when tls.h includes us. */
|
|
||||||
#if __ASSUME_LDT_WORKS > 0 && !defined _TLS_H
|
|
||||||
#include "../useldt.h"
|
#include "../useldt.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -113,7 +113,9 @@ typedef struct
|
|||||||
# define TLS_LOAD_EBX
|
# define TLS_LOAD_EBX
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# include "useldt.h" /* For the structure. */
|
# if !defined IS_IN_linuxthreads && !defined DO_MODIFY_LDT
|
||||||
|
# include "useldt.h" /* For the structure. */
|
||||||
|
# endif
|
||||||
# if __ASSUME_LDT_WORKS > 0
|
# if __ASSUME_LDT_WORKS > 0
|
||||||
# define TLS_DO_MODIFY_LDT_KERNEL_CHECK(doit) (doit) /* Nothing to check. */
|
# define TLS_DO_MODIFY_LDT_KERNEL_CHECK(doit) (doit) /* Nothing to check. */
|
||||||
# else
|
# else
|
||||||
|
Reference in New Issue
Block a user