[hurd,commited] hurd: Fix support/support_enter_mount_namespace.c build
Commit Message
* 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(+)
Comments
On Thu, 4 Jan 2018, Samuel Thibault wrote:
> +#ifdef CLONE_NEWNS
> #include <sys/mount.h>
> +#endif /* CLONE_NEWNS */
We use preprocessor indentation inside #if, so making a #include
conditional requires changing it to "# include", and likewise when making
any other preprocessor directives conditional (other than when the outer
#if is a header's multiple-include guard).
@@ -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__.
@@ -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)