olga / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

Blame SOURCES/glibc-rh1505492-undef-7.patch

00db10
commit d7329d4b4d297b5638aef7fc4d5eaf9ad7845d7a
00db10
Author: Roland McGrath <roland@hack.frob.com>
00db10
Date:   Fri Mar 14 10:46:38 2014 -0700
00db10
00db10
    Fix two stray cases using #ifdef vs #if for TLS_TCB_AT_TP.
00db10
00db10
diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c
00db10
index 9f2016c19f0c8248..1083d6faacca5ab6 100644
00db10
--- a/nptl/pthread_create.c
00db10
+++ b/nptl/pthread_create.c
00db10
@@ -460,7 +460,7 @@ __pthread_create_2_1 (newthread, attr, start_routine, arg)
00db10
      performed in 'get_cached_stack'.  This way we avoid doing this if
00db10
      the stack freshly allocated with 'mmap'.  */
00db10
 
00db10
-#ifdef TLS_TCB_AT_TP
00db10
+#if TLS_TCB_AT_TP
00db10
   /* Reference to the TCB itself.  */
00db10
   pd->header.self = pd;
00db10
 
00db10
diff --git a/nptl/sysdeps/pthread/createthread.c b/nptl/sysdeps/pthread/createthread.c
00db10
index e8e10dcf73ed382d..baa12eb26c80e465 100644
00db10
--- a/nptl/sysdeps/pthread/createthread.c
00db10
+++ b/nptl/sysdeps/pthread/createthread.c
00db10
@@ -146,7 +146,7 @@ static int
00db10
 create_thread (struct pthread *pd, const struct pthread_attr *attr,
00db10
 	       STACK_VARIABLES_PARMS)
00db10
 {
00db10
-#ifdef TLS_TCB_AT_TP
00db10
+#if TLS_TCB_AT_TP
00db10
   assert (pd->header.tcb != NULL);
00db10
 #endif
00db10