lxc: drop compat code for clone constants
Given our supported platform matrix, we can safely assume that all the clone constants we need are defined by the system headers. Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
185a15cfb2
commit
a3e010d47e
@ -66,26 +66,6 @@
|
|||||||
|
|
||||||
VIR_LOG_INIT("lxc.lxc_container");
|
VIR_LOG_INIT("lxc.lxc_container");
|
||||||
|
|
||||||
/*
|
|
||||||
* GLibc headers are behind the kernel, so we define these
|
|
||||||
* constants if they're not present already.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef CLONE_NEWPID
|
|
||||||
# define CLONE_NEWPID 0x20000000
|
|
||||||
#endif
|
|
||||||
#ifndef CLONE_NEWUTS
|
|
||||||
# define CLONE_NEWUTS 0x04000000
|
|
||||||
#endif
|
|
||||||
#ifndef CLONE_NEWUSER
|
|
||||||
# define CLONE_NEWUSER 0x10000000
|
|
||||||
#endif
|
|
||||||
#ifndef CLONE_NEWIPC
|
|
||||||
# define CLONE_NEWIPC 0x08000000
|
|
||||||
#endif
|
|
||||||
#ifndef CLONE_NEWNET
|
|
||||||
# define CLONE_NEWNET 0x40000000 /* New network namespace */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* messages between parent and container */
|
/* messages between parent and container */
|
||||||
typedef char lxc_message_t;
|
typedef char lxc_message_t;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user