olga / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

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

00db10
commit fcd89ebe4f5ea948ff4c796771b918cde8960721
00db10
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
00db10
Date:   Mon Mar 17 19:31:46 2014 +0530
00db10
00db10
    Get rid of __LT_SPINLOCK_INIT
00db10
    
00db10
    We got rid of LinuxThreads in 2005, but we didn't remove
00db10
    __LT_SPINLOCK_INIT back then.  Do it now.
00db10
    
00db10
            * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
00db10
            && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
00db10
            Remove.
00db10
00db10
diff --git a/nptl/sysdeps/pthread/bits/libc-lockP.h b/nptl/sysdeps/pthread/bits/libc-lockP.h
00db10
index 962a292308f92267..07e0ef62909b9e9e 100644
00db10
--- a/nptl/sysdeps/pthread/bits/libc-lockP.h
00db10
+++ b/nptl/sysdeps/pthread/bits/libc-lockP.h
00db10
@@ -78,13 +78,8 @@ typedef pthread_key_t __libc_key_t;
00db10
   CLASS __libc_lock_t NAME = LLL_LOCK_INITIALIZER;
00db10
 # endif
00db10
 #else
00db10
-# if __LT_SPINLOCK_INIT == 0
00db10
-#  define __libc_lock_define_initialized(CLASS,NAME) \
00db10
+# define __libc_lock_define_initialized(CLASS,NAME) \
00db10
   CLASS __libc_lock_t NAME;
00db10
-# else
00db10
-#  define __libc_lock_define_initialized(CLASS,NAME) \
00db10
-  CLASS __libc_lock_t NAME = PTHREAD_MUTEX_INITIALIZER;
00db10
-# endif
00db10
 #endif
00db10
 
00db10
 #define __libc_rwlock_define_initialized(CLASS,NAME) \