git-mount_namespace
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Sun, 14 Jan 2018 10:24:48 +0000 (10:24 +0000)
committerAurelien Jarno <aurel32@debian.org>
Sun, 14 Jan 2018 10:24:48 +0000 (10:24 +0000)
commit 1714fc06e08db35fc3638ddde259d61c7a764861
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Thu Jan 4 00:54:13 2018 +0100

    hurd: Fix support/support_enter_mount_namespace.c build

            * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
            include <sys/mount.h>.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-mount_namespace.diff

support/support_enter_mount_namespace.c

index 614069207565c2e2b1b7fe975f5f5a87e584f138..c761971e1a1930794870336836c23a15b0c694fa 100644 (file)
@@ -20,7 +20,9 @@
 
 #include <sched.h>
 #include <stdio.h>
+#ifdef CLONE_NEWNS
 #include <sys/mount.h>
+#endif /* CLONE_NEWNS */
 
 bool
 support_enter_mount_namespace (void)