summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/syscalls.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/syscalls.c')
-rw-r--r--libc/sysdeps/linux/common/syscalls.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c
index 3556f83e0..144581028 100644
--- a/libc/sysdeps/linux/common/syscalls.c
+++ b/libc/sysdeps/linux/common/syscalls.c
@@ -905,9 +905,10 @@ int select(int n, fd_set * readfds, fd_set * writefds, fd_set * exceptfds,
//#define __NR_flock 143
#ifdef L_flock
-SYSCALL__(flock, 2)
- ret
+#include <sys/file.h>
+_syscall2(int,flock,int,fd, int,operation);
#endif
+
//#define __NR_msync 144
#ifdef L_msync
SYSCALL__(msync, 3)