This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[hurd,commited] hurd: Fix support/support_enter_mount_namespace.c build
- From: Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- To: libc-alpha at sourceware dot org
- Cc: Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- Date: Thu, 4 Jan 2018 00:55:33 +0100
- Subject: [hurd,commited] hurd: Fix support/support_enter_mount_namespace.c build
- Authentication-results: sourceware.org; auth=none
* support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
include <sys/mount.h>.
---
ChangeLog | 5 +++++
support/support_enter_mount_namespace.c | 2 ++
2 files changed, 7 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 68b8c93ccc..40e4d1b4eb 100644
--- 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__.
diff --git a/support/support_enter_mount_namespace.c b/support/support_enter_mount_namespace.c
index 64fe08b044..3b4ce84f35 100644
--- a/support/support_enter_mount_namespace.c
+++ b/support/support_enter_mount_namespace.c
@@ -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)
--
2.15.1