[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#173082: libnss-db's libc-lock.h



> New patches will be coming this evening to fix libnss-db.

Plunk it in at libnss-db-2.2/debian/patches/004_hppa_libc-lock.diff

- Builds libnss-db-2.2
- Haven't tested the built package, but the patch is trivial.

I'm not a DD yet so I can't push this forward, would someone please do
me the honour? :)

c.

--- nss_db-2.2/libc-lock.h	2003-02-10 21:08:33.000000000 -0500
+++ nss_db-2.2/libc-lock.h	2003-02-10 21:09:53.000000000 -0500
@@ -26,12 +26,12 @@
 
 typedef pthread_mutex_t __libc_lock_t;
 
-#if __LT_SPINLOCK_INIT == 0
+#ifdef __LT_INITIALIZER_NOT_ZERO
 #  define __libc_lock_define_initialized(CLASS,NAME) \
-  CLASS pthread_mutex_t NAME;
+  CLASS pthread_mutex_t NAME = PTHREAD_MUTEX_INITIALIZER;
 #else
 #  define __libc_lock_define_initialized(CLASS,NAME) \
-  CLASS pthread_mutex_t NAME = PTHREAD_MUTEX_INITIALIZER;
+  CLASS pthread_mutex_t NAME;
 #endif
 
 /* Lock the named lock variable.  */

Reply to: