OSDN Git Service

NPTL/ARC: fix __lll_lock_wait_private redefinition for static links
authorVineet Gupta <Vineet.Gupta1@synopsys.com>
Wed, 21 Oct 2015 07:12:24 +0000 (12:42 +0530)
committerWaldemar Brodkorb <wbx@uclibc-ng.org>
Thu, 22 Oct 2015 13:20:06 +0000 (15:20 +0200)
Commit 2d9740a65a "uclibc: nptl: fix __lll_lock_wait_private multiple definition"
did a sweeping change which did for all in tree arches at that time (ARC
wasn't)

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
libpthread/nptl/sysdeps/unix/sysv/linux/arc/lowlevellock.c

index 1aa7960..fd39fe9 100644 (file)
 #include <tls.h>
 #include <tcb-offsets.h>
 
-
 void
+#ifndef IS_IN_libpthread
+weak_function
+#endif
 __lll_lock_wait_private (int *futex)
 {
   if (*futex == 2)