summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
Diffstat (limited to 'support')
-rw-r--r--support/support_enter_mount_namespace.c2
1 files changed, 2 insertions, 0 deletions
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)