--- libxcrypt-2.4/src/crypt_util.c 2013-06-13 21:11:51.036822617 +0200 +++ libxcrypt-2.4_O/src/crypt_util.c 2006-01-06 01:02:01.000000000 +0100 @@ -29,7 +29,8 @@ #endif #include -#include +#include +#define __libc_lock_t pthread_mutex_t #ifndef STATIC #define STATIC static @@ -263,7 +264,7 @@ */ struct crypt_data _ufc_foobar; -static pthread_mutex_t _ufc_tables_lock = PTHREAD_MUTEX_INITIALIZER; +__libc_lock_define_initialized (static, _ufc_tables_lock) #ifdef DEBUG @@ -361,7 +362,7 @@ #endif if(small_tables_initialized == 0) { - pthread_mutex_lock (&_ufc_tables_lock); + __libc_lock_lock (_ufc_tables_lock); if(small_tables_initialized) goto small_tables_done; @@ -466,7 +467,7 @@ } small_tables_initialized = 1; small_tables_done: - pthread_mutex_unlock(&_ufc_tables_lock); + __libc_lock_unlock(_ufc_tables_lock); } /*