summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads.old/spinlock.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/linuxthreads.old/spinlock.c')
-rw-r--r--libpthread/linuxthreads.old/spinlock.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libpthread/linuxthreads.old/spinlock.c b/libpthread/linuxthreads.old/spinlock.c
index cdf45f195..e00bc3156 100644
--- a/libpthread/linuxthreads.old/spinlock.c
+++ b/libpthread/linuxthreads.old/spinlock.c
@@ -26,13 +26,15 @@
#include "spinlock.h"
#include "restart.h"
+libpthread_hidden_proto(nanosleep)
+
static void __pthread_acquire(int * spinlock);
static inline void __pthread_release(int * spinlock)
{
WRITE_MEMORY_BARRIER();
*spinlock = __LT_SPINLOCK_INIT;
- __asm __volatile ("" : "=m" (*spinlock) : "m" (*spinlock));
+ __asm __volatile__ ("" : "=m" (*spinlock) : "m" (*spinlock));
}