[git commit] sparc: add missing pthread_spin_lock/pthread_spin_trylock
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Thu Aug 28 11:00:56 UTC 2014
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 at openadk.org>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at 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
More information about the uClibc-cvs
mailing list