Fix tst-preadvwritev2 build failure on HURD
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 23 Oct 2018 17:53:12 +0000 (14:53 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 23 Oct 2018 17:57:02 +0000 (14:57 -0300)
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.

ChangeLog
misc/tst-preadvwritev2-common.c

index c5fe2a8..6cb7d60 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2018-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
 
+       * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
+       defined.
+
        [BZ #23709]
        * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
        independently of other flags.
index 50b9da3..3098b4a 100644 (file)
 #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)
 {