mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-13 06:23:45 -04:00
17 lines
535 B
Plaintext
17 lines
535 B
Plaintext
$NetBSD: patch-an,v 1.4 2003/08/29 06:48:08 martti Exp $
|
|
|
|
--- src/IIOP/giop-msg-buffer.c.orig 2002-03-11 14:40:02.000000000 +0200
|
|
+++ src/IIOP/giop-msg-buffer.c 2003-08-29 08:48:27.000000000 +0300
|
|
@@ -210,7 +210,11 @@
|
|
res = writev (fd, curvec, MIN (nvecs, MAX_LIMITED_IOVECS));
|
|
/* fprintf (stderr, "wrote %ld bytes [%d]\n", res, (int) errno); */
|
|
#else
|
|
+#ifndef __NetBSD__
|
|
res = writev (fd, curvec, nvecs);
|
|
+#else
|
|
+ res = writev (fd, curvec, MIN(nvecs, IOV_MAX));
|
|
+#endif
|
|
#endif
|
|
} while (res < 0 && errno == EINTR);
|
|
|