git://git.onelab.eu
/
util-vserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66f0937
)
Fix for trellis build.
author
Sapan Bhatia
<sapanb@cs.princeton.edu>
Fri, 9 Oct 2009 20:53:42 +0000
(20:53 +0000)
committer
Sapan Bhatia
<sapanb@cs.princeton.edu>
Fri, 9 Oct 2009 20:53:42 +0000
(20:53 +0000)
src/exec-remount.c
patch
|
blob
|
history
diff --git
a/src/exec-remount.c
b/src/exec-remount.c
index
d54683b
..
824bc06
100644
(file)
--- a/
src/exec-remount.c
+++ b/
src/exec-remount.c
@@
-31,6
+31,11
@@
#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