From: Adhemerval Zanella Date: Tue, 23 Oct 2018 17:53:12 +0000 (-0300) Subject: Fix tst-preadvwritev2 build failure on HURD X-Git-Tag: glibc-2.29~379 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=18ad0de6513bf8a8e4ba757c069e6806d07920f8;p=thirdparty%2Fglibc.git 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. --- diff --git a/ChangeLog b/ChangeLog index c5fe2a85276..6cb7d604ce4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2018-10-23 Adhemerval Zanella + * 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. diff --git a/misc/tst-preadvwritev2-common.c b/misc/tst-preadvwritev2-common.c index 50b9da3fea5..3098b4ae0bc 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) {