OSDN Git Service

sparc: add missing pthread_spin_lock/pthread_spin_trylock
authorWaldemar Brodkorb <wbx@openadk.org>
Thu, 28 Aug 2014 10:31:22 +0000 (12:31 +0200)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 28 Aug 2014 11:00:56 +0000 (13:00 +0200)
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 [new file with mode: 0644]
libpthread/nptl/sysdeps/sparc/pthread_spin_trylock.c [new file with mode: 0644]

diff --git a/libpthread/nptl/sysdeps/sparc/pthread_spin_lock.c b/libpthread/nptl/sysdeps/sparc/pthread_spin_lock.c
new file mode 100644 (file)
index 0000000..dcc5ae2
--- /dev/null
@@ -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 (file)
index 0000000..af63eec
--- /dev/null
@@ -0,0 +1,5 @@
+#if defined(__arch64__)
+#include "sparc64/pthread_spin_trylock.c"
+#else
+#include "sparc32/pthread_spin_trylock.c"
+#endif