use '__linux__' instead of '__linux' (reported by Ola Lundqvist)
[util-vserver.git] / util-vserver / src / compat-pivot_root.h
index 9fcdba2..9c3872c 100644 (file)
 #ifndef H_UTIL_VSERVER_SRC_COMPAT_PIVOT_ROOT_H
 #define H_UTIL_VSERVER_SRC_COMPAT_PIVOT_ROOT_H
 
-#include <sys/syscall.h>
 #include <unistd.h>
-#include <linux/unistd.h>
 #include <errno.h>
 
-_syscall2(int,pivot_root,const char *,new_root,const char *,put_old)
+#include "syscall-wrap.h"
+
+inline static _syscall2(int,pivot_root,const char *,new_root,const char *,put_old)
 
 #endif //  H_UTIL_VSERVER_SRC_COMPAT_PIVOT_ROOT_H