Commit 3695881d authored by Eugene Batalov's avatar Eugene Batalov Committed by Pavel Emelyanov

lock: include unistd.h for syscall function declaration

sys/syscall.h only defines syscall number constants but
not syscall function.
Signed-off-by: 's avatarEugene Batalov <eabatalov89@gmail.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent c5f1645c
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#ifdef CR_NOGLIBC #ifdef CR_NOGLIBC
# include "syscall.h" # include "syscall.h"
#else #else
# include <unistd.h>
# include <sys/syscall.h> # include <sys/syscall.h>
static inline long sys_futex(void *addr1, int op, int val1, static inline long sys_futex(void *addr1, int op, int val1,
struct timespec *timeout, void *addr2, int val3) struct timespec *timeout, void *addr2, int val3)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment