Fix for trellis build.
authorSapan Bhatia <sapanb@cs.princeton.edu>
Fri, 9 Oct 2009 20:53:42 +0000 (20:53 +0000)
committerSapan Bhatia <sapanb@cs.princeton.edu>
Fri, 9 Oct 2009 20:53:42 +0000 (20:53 +0000)
src/exec-remount.c

index d54683b..824bc06 100644 (file)
 #include <sys/mount.h>
 #include <errno.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
+
 #define ENSC_WRAPPERS_PREFIX   "exec-remount: "
 #define ENSC_WRAPPERS_MOUNT    1
 #define ENSC_WRAPPERS_UNISTD   1