about summary refs log tree commit diff
path: root/misc/tst-preadvwritev2-common.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2018-10-23 14:53:12 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2018-10-23 14:57:02 -0300
commit18ad0de6513bf8a8e4ba757c069e6806d07920f8 (patch)
tree5e37b5ff46bbad5b836d593df6b4173b8cef029d /misc/tst-preadvwritev2-common.c
parentc3d8dc45c9df199b8334599a6cbd98c9950dba62 (diff)
downloadglibc-18ad0de6513bf8a8e4ba757c069e6806d07920f8.tar.gz
glibc-18ad0de6513bf8a8e4ba757c069e6806d07920f8.tar.xz
glibc-18ad0de6513bf8a8e4ba757c069e6806d07920f8.zip
Fix tst-preadvwritev2 build failure on HURD
Commit 7a16bdbb9ff41 uses IOV_MAX, which is not defined on hurd.

Checked on a build for i686-gnu.

	* misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
	defined.
Diffstat (limited to 'misc/tst-preadvwritev2-common.c')
-rw-r--r--misc/tst-preadvwritev2-common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/misc/tst-preadvwritev2-common.c b/misc/tst-preadvwritev2-common.c
index 50b9da3fea..3098b4ae0b 100644
--- a/misc/tst-preadvwritev2-common.c
+++ b/misc/tst-preadvwritev2-common.c
@@ -37,6 +37,11 @@
 #define RWF_SUPPORTED	(RWF_HIPRI | RWF_DSYNC | RWF_SYNC | RWF_NOWAIT \
 			 | RWF_APPEND)
 
+/* Generic uio_lim.h does not define IOV_MAX.  */
+#ifndef IOV_MAX
+# define IOV_MAX 1024
+#endif
+
 static void
 do_test_with_invalid_fd (void)
 {