about summary refs log tree commit diff
path: root/src/thread/__wait.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/__wait.c')
-rw-r--r--src/thread/__wait.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/thread/__wait.c b/src/thread/__wait.c
index 8c249cd3..b0969bb2 100644
--- a/src/thread/__wait.c
+++ b/src/thread/__wait.c
@@ -1,4 +1,3 @@
-#define SYSCALL_RETURN_ERRNO
 #include "pthread_impl.h"
 
 void __wait(volatile int *addr, volatile int *waiters, int val, int priv)
@@ -11,6 +10,6 @@ void __wait(volatile int *addr, volatile int *waiters, int val, int priv)
 	}
 	if (waiters) a_inc(waiters);
 	while (*addr==val)
-		syscall4(__NR_futex, (long)addr, FUTEX_WAIT|priv, val, 0);
+		__syscall(__NR_futex, (long)addr, FUTEX_WAIT|priv, val, 0);
 	if (waiters) a_dec(waiters);
 }