From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1792) id D17C13858428; Mon, 1 May 2023 11:26:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D17C13858428 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1682940372; bh=5q6MlGuHECB/yBZ0yvF9ny11SSUz/TcSUqbKs+5nrHE=; h=From:To:Subject:Date:From; b=frSlji0D3VnLKB+w1TRVLCLmP8Li1lki7uthj9MOj7FCPMz7EFTXdhAhXnhh1Q4Z2 qHZIbACq8BuoBqCMkrriz3uwKN/nABWx0jzZJ2EmkOETovRBXp/sQxyPwQJ5WG7k1N Fy91RCYeghY0QpEf5wxPK0AsVv2Q4P20zAeetssQ= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Samuel Thibault To: glibc-cvs@sourceware.org Subject: [glibc] hurd: Fix tst-writev test X-Act-Checkin: glibc X-Git-Author: Samuel Thibault X-Git-Refname: refs/heads/master X-Git-Oldrev: 6d4f1834957bc52fef6bf0fe903580220d0d711c X-Git-Newrev: 14f16bd48283f83b1be0e71374ad90aa2cf181d6 Message-Id: <20230501112612.D17C13858428@sourceware.org> Date: Mon, 1 May 2023 11:26:12 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=14f16bd48283f83b1be0e71374ad90aa2cf181d6 commit 14f16bd48283f83b1be0e71374ad90aa2cf181d6 Author: Samuel Thibault Date: Mon May 1 13:00:50 2023 +0200 hurd: Fix tst-writev test There is no compile-time IOV_MAX constraint on GNU/Hurd Diff: --- sysdeps/wordsize-64/tst-writev.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sysdeps/wordsize-64/tst-writev.c b/sysdeps/wordsize-64/tst-writev.c index 3736f2bfb0..ffdd5e69c3 100644 --- a/sysdeps/wordsize-64/tst-writev.c +++ b/sysdeps/wordsize-64/tst-writev.c @@ -24,6 +24,11 @@ #include #include +/* GNU/Hurd does not define a IOV_MAX constraint. */ +#ifndef IOV_MAX +# define IOV_MAX 1024 +#endif + /* The purpose of this test is to verify that the INTERNAL_[V]SYSCALL_NCS macros on 64-bit platforms don't cast the return type to (int) which would