Преглед на файлове

sparc: add missing pthread_spin_lock/pthread_spin_trylock

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>
Waldemar Brodkorb преди 9 години
родител
ревизия
68d700d66b
променени са 2 файла, в които са добавени 10 реда и са изтрити 0 реда
  1. 5 0
      libpthread/nptl/sysdeps/sparc/pthread_spin_lock.c
  2. 5 0
      libpthread/nptl/sysdeps/sparc/pthread_spin_trylock.c

+ 5 - 0
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

+ 5 - 0
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