include <syscall.h> also
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Mon, 2 May 2005 21:42:05 +0000 (21:42 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Mon, 2 May 2005 21:42:05 +0000 (21:42 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2076 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/lib/syscall-legacy.hc
util-vserver/lib/syscall-wrap.h

index f05daee..e638242 100644 (file)
 #include <string.h>
 #include <stdlib.h>
 #include <errno.h>
-#include <syscall.h>
 #include <asm/unistd.h>
 #include <stdbool.h>
 
+#include "syscall-wrap.h"
+
 // Here is the trick. We keep a copy of the define, then undef it
 // and then later, we try to locate the value reading /proc/self/status
 // If this fails, we have the old preserved copy.
index b7c539d..f46013c 100644 (file)
@@ -20,6 +20,7 @@
 #define H_UTIL_VSERVER_LIB_SYSCALL_WRAP_H
 
 #include <sys/syscall.h>
+#include <syscall.h>
 #include <unistd.h>
 
 #ifdef ENSC_USE_ALTERNATIVE_SYSCALL_MACROS