ports/benchmarks/libmicro/files/patch-writev.c
Mathieu Arnold 56bf85096c Cleanup patches, category benchmarks
Rename them to follow the make makepatch naming, and regenerate them.

With hat:	portmgr
Sponsored by:	Absolight
2016-07-27 15:09:11 +00:00

21 lines
376 B
C

--- writev.c.orig 2011-05-11 00:58:23 UTC
+++ writev.c
@@ -28,6 +28,7 @@
* Use is subject to license terms.
*/
+#include <sys/types.h>
#include <sys/uio.h>
#include <limits.h>
#include <unistd.h>
@@ -35,6 +36,10 @@
#include <stdio.h>
#include <fcntl.h>
+#ifndef UIO_MAXIOV
+#define UIO_MAXIOV 1024
+#endif
+
#ifndef IOV_MAX
#define IOV_MAX UIO_MAXIOV
#endif