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

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