summaryrefslogtreecommitdiff
path: root/net/ORBit/patches
diff options
context:
space:
mode:
authormartti <martti@pkgsrc.org>2003-08-29 06:48:07 +0000
committermartti <martti@pkgsrc.org>2003-08-29 06:48:07 +0000
commit0196ccbd29cf2455d35431b83d6ab68096194b4b (patch)
tree507859aafce27485c7f0c60245b5ba63b6275b60 /net/ORBit/patches
parente8ec6d8cd09694e13462fbfbb4bd39fa06c539d8 (diff)
downloadpkgsrc-0196ccbd29cf2455d35431b83d6ab68096194b4b.tar.gz
Use the IOV_MAX fix only in NetBSD
Diffstat (limited to 'net/ORBit/patches')
-rw-r--r--net/ORBit/patches/patch-an13
1 files changed, 8 insertions, 5 deletions
diff --git a/net/ORBit/patches/patch-an b/net/ORBit/patches/patch-an
index 430ae1381e9..80e5b7e5092 100644
--- a/net/ORBit/patches/patch-an
+++ b/net/ORBit/patches/patch-an
@@ -1,13 +1,16 @@
-$NetBSD: patch-an,v 1.3 2003/01/19 13:48:19 wiz Exp $
+$NetBSD: patch-an,v 1.4 2003/08/29 06:48:08 martti Exp $
---- src/IIOP/giop-msg-buffer.c.orig Mon Mar 11 13:40:02 2002
-+++ src/IIOP/giop-msg-buffer.c
-@@ -210,7 +210,7 @@ giop_send_buffer_write(GIOPSendBuffer *s
+--- 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
-- res = writev (fd, curvec, nvecs);
++#ifndef __NetBSD__
+ res = writev (fd, curvec, nvecs);
++#else
+ res = writev (fd, curvec, MIN(nvecs, IOV_MAX));
++#endif
#endif
} while (res < 0 && errno == EINTR);