From 5ea138dc4b9822095723b75bc2962e3d899f5437 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Mon, 18 Feb 2013 23:05:39 +0100 Subject: Enable chroot support on old glibc versions. --- src/libstore/build.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/libstore/build.cc b/src/libstore/build.cc index d9a7f3109ad0..f583d6857e20 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -43,6 +43,12 @@ #include #endif +/* In GNU libc 2.11, does not define `MS_PRIVATE', but + does. */ +#if !defined MS_PRIVATE && defined HAVE_LINUX_FS_H +#include +#endif + #define CHROOT_ENABLED HAVE_CHROOT && HAVE_UNSHARE && HAVE_SYS_MOUNT_H && defined(MS_BIND) && defined(MS_PRIVATE) && defined(CLONE_NEWNS) #if CHROOT_ENABLED -- cgit 1.4.1