[CRIU] [PATCH 1/4] lock: include unistd.h for syscall function declaration

Eugene Batalov eabatalov89 at gmail.com
Fri Jun 24 13:38:48 PDT 2016


sys/syscall.h only defines syscall number constants but
not syscall function.

Signed-off-by: Eugene Batalov <eabatalov89 at gmail.com>
---
 criu/include/lock.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/criu/include/lock.h b/criu/include/lock.h
index 1678d10..6aa7d55 100644
--- a/criu/include/lock.h
+++ b/criu/include/lock.h
@@ -13,6 +13,7 @@
 #ifdef CR_NOGLIBC
 # include "syscall.h"
 #else
+# include <unistd.h>
 # include <sys/syscall.h>
 static inline long sys_futex(void *addr1, int op, int val1,
                             struct timespec *timeout, void *addr2, int val3)
-- 
1.9.1



More information about the CRIU mailing list