diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-01-28 17:56:49 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-01-28 17:56:49 +0100 |
commit | 3fc1ecf93549acd5bea1e84d93862ee556b3a5a8 (patch) | |
tree | 4a5cb79965d02bac348828edc572829ebd0d23d5 | |
parent | fc221145a734d128d8f56f40d40fd4bb70a1d151 (diff) | |
download | glibc-3fc1ecf93549acd5bea1e84d93862ee556b3a5a8.tar glibc-3fc1ecf93549acd5bea1e84d93862ee556b3a5a8.tar.gz glibc-3fc1ecf93549acd5bea1e84d93862ee556b3a5a8.tar.bz2 glibc-3fc1ecf93549acd5bea1e84d93862ee556b3a5a8.zip |
hurd: Fix building io/tst-copy_file_range.c
* io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
<sys/mount.h>.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | io/tst-copy_file_range.c | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -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> 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. */ |