]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: Fix building io/tst-copy_file_range.c
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 28 Jan 2018 16:56:49 +0000 (17:56 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 28 Jan 2018 16:56:49 +0000 (17:56 +0100)
* io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
<sys/mount.h>.

ChangeLog
io/tst-copy_file_range.c

index 23058435c4540aaceb33cd129a6a4752725715a5..961262d65475045b33ebe03607d959f841681a7e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -58,6 +58,8 @@
        * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
        * io/tst-fchownat.c [!defined _POSIX_CHOWN_RESTRICTED]: Act like when
        _POSIX_CHOWN_RESTRICTED is defined to 0.
+       * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
+       <sys/mount.h>.
 
 2008-12-18  Thomas Schwinge  <tschwinge@gnu.org>
 
index f1cab1252d39ba1dadffe18dc7b59611e1dec930..3d531a19370911e52803a5b5fffe83b0713df294 100644 (file)
@@ -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.  */