diff options
author | martti <martti@pkgsrc.org> | 2003-08-29 06:48:07 +0000 |
---|---|---|
committer | martti <martti@pkgsrc.org> | 2003-08-29 06:48:07 +0000 |
commit | 1c31bb27833c3dde7aa6b220c806829c1acfdbb3 (patch) | |
tree | 507859aafce27485c7f0c60245b5ba63b6275b60 /net/ORBit/patches | |
parent | 816d71a63f4f0f88b083fd55f664f899a3324be4 (diff) | |
download | pkgsrc-1c31bb27833c3dde7aa6b220c806829c1acfdbb3.tar.gz |
Use the IOV_MAX fix only in NetBSD
Diffstat (limited to 'net/ORBit/patches')
-rw-r--r-- | net/ORBit/patches/patch-an | 13 |
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); |