Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/benchmarks/libmicro/files/patch-writev.c
16461 views
1
--- writev.c.orig 2011-05-11 00:58:23 UTC
2
+++ writev.c
3
@@ -28,6 +28,7 @@
4
* Use is subject to license terms.
5
*/
6
7
+#include <sys/types.h>
8
#include <sys/uio.h>
9
#include <limits.h>
10
#include <unistd.h>
11
@@ -35,6 +36,10 @@
12
#include <stdio.h>
13
#include <fcntl.h>
14
15
+#ifndef UIO_MAXIOV
16
+#define UIO_MAXIOV 1024
17
+#endif
18
+
19
#ifndef IOV_MAX
20
#define IOV_MAX UIO_MAXIOV
21
#endif
22
23