]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: Fix tst-writev test
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 1 May 2023 11:00:50 +0000 (13:00 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 1 May 2023 11:01:30 +0000 (13:01 +0200)
There is no compile-time IOV_MAX constraint on GNU/Hurd

sysdeps/wordsize-64/tst-writev.c

index 3736f2bfb0315888d25fad6782fa96981cc6609c..ffdd5e69c35e8294c25d569f82dbb89f0b06e0e9 100644 (file)
 #include <unistd.h>
 #include <sys/uio.h>
 
+/* 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