about summary refs log tree commit diff
path: root/src/libstore/build.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-08-20T19·55-0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-08-20T19·55-0400
commitd950cfe70b2b70e938ece672dbccedfd4413c295 (patch)
tree495620b7e65b9fa006dfa7f8d8563b775e85e7b1 /src/libstore/build.cc
parent56e30e161cd309addb5aa95ba02a8d3371846228 (diff)
Check if MS_PRIVATE is defined
http://hydra.nixos.org/build/2955671
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r--src/libstore/build.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 0ed69614b80b..a77644054883 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -45,7 +45,7 @@
 #include <sched.h>
 #endif
 
-#define CHROOT_ENABLED HAVE_CHROOT && HAVE_UNSHARE && HAVE_SYS_MOUNT_H && defined(MS_BIND) && defined(CLONE_NEWNS)
+#define CHROOT_ENABLED HAVE_CHROOT && HAVE_UNSHARE && HAVE_SYS_MOUNT_H && defined(MS_BIND) && defined(MS_PRIVATE) && defined(CLONE_NEWNS)
 
 #if CHROOT_ENABLED
 #include <sys/socket.h>