summaryrefslogtreecommitdiff
path: root/io
diff options
context:
space:
mode:
Diffstat (limited to 'io')
-rw-r--r--io/tst-copy_file_range.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/io/tst-copy_file_range.c b/io/tst-copy_file_range.c
index f1cab1252d..3d531a1937 100644
--- a/io/tst-copy_file_range.c
+++ b/io/tst-copy_file_range.c
@@ -33,7 +33,9 @@
#include <support/temp_file.h>
#include <support/test-driver.h>
#include <support/xunistd.h>
-#include <sys/mount.h>
+#ifdef CLONE_NEWNS
+# include <sys/mount.h>
+#endif
/* Boolean flags which indicate whether to use pointers with explicit
output flags. */