mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-13 18:12:03 +08:00
use headers for clone() only when ENABLE_LINUX_NS is defined
This commit is contained in:
+5
-3
@@ -21,9 +21,11 @@
|
||||
#include <unistd.h>
|
||||
#ifdef __linux__
|
||||
# include <sys/prctl.h>
|
||||
# include <sched.h>
|
||||
# include <linux/sched.h>
|
||||
# include <sys/syscall.h>
|
||||
# if defined(ENABLE_LINUX_NS)
|
||||
# include <sched.h>
|
||||
# include <linux/sched.h>
|
||||
# include <sys/syscall.h>
|
||||
# endif
|
||||
#endif
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
Reference in New Issue
Block a user