mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
daemon: Remove ‘defined’ in macro definition.
Closes #6. * nix/libstore/build.cc (CHROOT_ENABLED, CLONE_ENABLED): Wrap in #ifdefs. Change-Id: I217e46fc2cac579a199fcd7c28ef5a8155a12750 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
c28fea0aca
commit
e3bd9a65cc
1 changed files with 11 additions and 2 deletions
|
@ -55,8 +55,17 @@
|
|||
#endif
|
||||
|
||||
|
||||
#define CHROOT_ENABLED HAVE_CHROOT && HAVE_SYS_MOUNT_H && defined(MS_BIND) && defined(MS_PRIVATE)
|
||||
#define CLONE_ENABLED defined(CLONE_NEWNS)
|
||||
#if defined(MS_BIND) && defined(MS_PRIVATE)
|
||||
#define CHROOT_ENABLED HAVE_CHROOT && HAVE_SYS_MOUNT_H
|
||||
#else
|
||||
#define CHROOT_ENABLED 0
|
||||
#endif
|
||||
|
||||
#if defined(CLONE_NEWNS)
|
||||
#define CLONE_ENABLED 1
|
||||
#else
|
||||
#define CLONE_ENABLED 0
|
||||
#endif
|
||||
|
||||
#if defined(SYS_pivot_root)
|
||||
#define pivot_root(new_root, put_old) (syscall(SYS_pivot_root, new_root,put_old))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue