[prev in list] [next in list] [prev in thread] [next in thread] 

List:       uclibc-cvs
Subject:    [git commit] sparc: add missing pthread_spin_lock/pthread_spin_trylock
From:       Bernhard Reutner-Fischer <rep.dot.nop () gmail ! com>
Date:       2014-08-28 11:00:56
Message-ID: 20140828111609.1BF8F9D0E7 () busybox ! osuosl ! org
[Download RAW message or body]

commit: http://git.uclibc.org/uClibc/commit/?id=68d700d66bfe498eeccd03ba44dd2081e34441d0
                
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

tst-spin1.c compile breaks with:
test/nptl/tst-spin1.c:34: undefined reference to `pthread_spin_lock'

pthread_spin_lock and pthread_spin_trylock is missing while
building sparc. add the meta c files here.

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
---
 libpthread/nptl/sysdeps/sparc/pthread_spin_lock.c  |    5 +++++
 .../nptl/sysdeps/sparc/pthread_spin_trylock.c      |    5 +++++
 2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/libpthread/nptl/sysdeps/sparc/pthread_spin_lock.c \
b/libpthread/nptl/sysdeps/sparc/pthread_spin_lock.c new file mode 100644
index 0000000..dcc5ae2
--- /dev/null
+++ b/libpthread/nptl/sysdeps/sparc/pthread_spin_lock.c
@@ -0,0 +1,5 @@
+#if defined(__arch64__)
+#include "sparc64/pthread_spin_lock.c"
+#else
+#include "sparc32/pthread_spin_lock.c"
+#endif
diff --git a/libpthread/nptl/sysdeps/sparc/pthread_spin_trylock.c \
b/libpthread/nptl/sysdeps/sparc/pthread_spin_trylock.c new file mode 100644
index 0000000..af63eec
--- /dev/null
+++ b/libpthread/nptl/sysdeps/sparc/pthread_spin_trylock.c
@@ -0,0 +1,5 @@
+#if defined(__arch64__)
+#include "sparc64/pthread_spin_trylock.c"
+#else
+#include "sparc32/pthread_spin_trylock.c"
+#endif
_______________________________________________
uClibc-cvs mailing list
uClibc-cvs@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc-cvs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic