projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
remove LFS64 symbol aliases; replace with dynamic linker remapping
[musl]
/
src
/
thread
/
pthread_spin_lock.c
diff --git
a/src/thread/pthread_spin_lock.c
b/src/thread/pthread_spin_lock.c
index
0462e0f
..
ded2b65
100644
(file)
--- a/
src/thread/pthread_spin_lock.c
+++ b/
src/thread/pthread_spin_lock.c
@@
-1,7
+1,8
@@
#include "pthread_impl.h"
+#include <errno.h>
int pthread_spin_lock(pthread_spinlock_t *s)
{
- while (*(volatile int *)s || a_cas(s, 0,
1
)) a_spin();
+ while (*(volatile int *)s || a_cas(s, 0,
EBUSY
)) a_spin();
return 0;
}