[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patches] [PATCH] fix build with linuxthreads
- To: patches@xxxxxxxxxx
- Subject: [patches] [PATCH] fix build with linuxthreads
- From: Aurelien Jarno <aurelien@xxxxxxxxxxx>
- Date: Sun, 1 Mar 2009 14:37:18 +0100
Hi,
The patch below fixes a problem that appears when using EGLIBC with
linuxthreads. The linuxthreads version of __libc_lock_lock and
__libc_lock_unlock functions includes a semi-colon at the end (as
some of the NPTL functions), so brackets can't be used. Use braces
instead.
Regards,
Aurelien
2009-03-01 Aurelien Jarno <aurelien@xxxxxxxxxxx>
* nss/nsswitch.c (lock_nsswitch, unlock_nsswitch): use braces
instead of brackets.
Index: nss/nsswitch.c
===================================================================
--- nss/nsswitch.c (revision 8009)
+++ nss/nsswitch.c (working copy)
@@ -84,8 +84,8 @@
__libc_lock_define_initialized (static, lock)
-#define lock_nsswitch (__libc_lock_lock (lock))
-#define unlock_nsswitch (__libc_lock_unlock (lock))
+#define lock_nsswitch {__libc_lock_lock (lock)}
+#define unlock_nsswitch {__libc_lock_unlock (lock)}
#if !defined DO_STATIC_NSS || defined SHARED
/* String with revision number of the shared object files. */
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@xxxxxxxxxxx http://www.aurel32.net