mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-17 06:53:26 +08:00
ipnetns: fix build on older systems
Debian Squeeze has out of date <sys/mount.h> without the required flags.
This commit is contained in:
parent
2f9e88f3c9
commit
03fdb011dd
14
ip/ipnetns.c
14
ip/ipnetns.c
@ -29,6 +29,20 @@
|
||||
#define MNT_DETACH 0x00000002 /* Just detach from the tree */
|
||||
#endif /* MNT_DETACH */
|
||||
|
||||
/* sys/mount.h may be out too old to have these */
|
||||
#ifndef MS_REC
|
||||
#define MS_REC 16384
|
||||
#endif
|
||||
|
||||
#ifndef MS_SLAVE
|
||||
#define MS_SLAVE (1 << 19)
|
||||
#endif
|
||||
|
||||
#ifndef MS_SHARED
|
||||
#define MS_SHARED (1 << 20)
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef HAVE_SETNS
|
||||
static int setns(int fd, int nstype)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user