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:
@@ -21,9 +21,11 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
# include <sys/prctl.h>
|
# include <sys/prctl.h>
|
||||||
|
# if defined(ENABLE_LINUX_NS)
|
||||||
# include <sched.h>
|
# include <sched.h>
|
||||||
# include <linux/sched.h>
|
# include <linux/sched.h>
|
||||||
# include <sys/syscall.h>
|
# include <sys/syscall.h>
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user