From: Stephen Hemminger Date: Wed, 17 Apr 2013 20:33:26 +0000 (-0700) Subject: ipnetns: fix build on older systems X-Git-Tag: v3.9.0~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03fdb011dd661315a83998af8af779d8f089e3fe;p=thirdparty%2Fiproute2.git ipnetns: fix build on older systems Debian Squeeze has out of date without the required flags. --- diff --git a/ip/ipnetns.c b/ip/ipnetns.c index b047b979a..c9bc20aee 100644 --- a/ip/ipnetns.c +++ b/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) {