]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: Fix support/support_enter_mount_namespace.c build
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 3 Jan 2018 23:54:13 +0000 (00:54 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 3 Jan 2018 23:54:13 +0000 (00:54 +0100)
* support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
include <sys/mount.h>.

ChangeLog
support/support_enter_mount_namespace.c

index 68b8c93cccc5757bd7cab4c4d098841396112b2a..40e4d1b4ebada51db60f197618fc192a76bc58fb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
+
+       * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
+       include <sys/mount.h>.
+
 2018-01-02  Wilco Dijkstra  <wdijkstr@arm.com>
 
        * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
index 64fe08b044f270033812a45fd1bc9f8e44dbd123..3b4ce84f359abc8aa845d3ef003a6ae0875590ac 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)