From 2b70a8e7c98adebdac1e546e17ee1d909b4e5989 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 12 Dec 2008 13:41:36 +0000 Subject: * Detect whether unshare() is available. --- src/libstore/build.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/libstore/build.cc b/src/libstore/build.cc index d4c5b81d3f..8d06a66f60 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -34,13 +34,10 @@ #include #endif #if HAVE_SCHED_H -#if !defined _GNU_SOURCE -#define _GNU_SOURCE -#endif #include #endif -#define CHROOT_ENABLED HAVE_CHROOT && 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(CLONE_NEWNS) namespace nix { -- cgit 1.4.1