This change is to fix the Trellis build. Missed this file in the previous changeset.
[util-vserver.git] / src / vcontext.c
index a58d1ce..c505889 100644 (file)
@@ -1,4 +1,4 @@
-// $Id: vcontext.c 2843 2009-07-20 21:24:03Z dhozac $    --*- c -*--
+// $Id: vcontext.c 2819 2008-10-31 15:41:04Z dhozac $    --*- c -*--
 
 // Copyright (C) 2004-2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
 //  
 #include <grp.h>
 #include <sys/mount.h>
 
+// Make this version of util-vserver build in one of PL's builds with an old mount.h
+#if defined(_SYS_MOUNT_H) && !defined(MNT_DETACH)
+#define MNT_DETACH          2
+#endif
+
 #include <linux/personality.h>
 
 #define ENSC_WRAPPERS_PREFIX   "vcontext: "
 #define CMD_PIVOT_ROOT         0x4011
 
 
-#ifndef MNT_DETACH
-#define MNT_DETACH             0x0002
-#endif
-
-
 struct option const
 CMDLINE_OPTIONS[] = {
   { "help",       no_argument,       0, CMD_HELP },