diff options
-rw-r--r-- | devel/ORBit/Makefile | 2 | ||||
-rw-r--r-- | devel/ORBit/files/patch-src::IIOP::giop-msg-buffer.c | 24 | ||||
-rw-r--r-- | devel/ORBit2/Makefile | 2 | ||||
-rw-r--r-- | devel/ORBit2/files/patch-src::IIOP::giop-msg-buffer.c | 24 |
4 files changed, 50 insertions, 2 deletions
diff --git a/devel/ORBit/Makefile b/devel/ORBit/Makefile index c4ad0ddc44f7..8426c47c1730 100644 --- a/devel/ORBit/Makefile +++ b/devel/ORBit/Makefile @@ -7,7 +7,7 @@ PORTNAME= ORBit PORTVERSION= 0.5.10 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= stable/sources/ORBit diff --git a/devel/ORBit/files/patch-src::IIOP::giop-msg-buffer.c b/devel/ORBit/files/patch-src::IIOP::giop-msg-buffer.c new file mode 100644 index 000000000000..a42320410527 --- /dev/null +++ b/devel/ORBit/files/patch-src::IIOP::giop-msg-buffer.c @@ -0,0 +1,24 @@ + +$FreeBSD$ + +--- src/IIOP/giop-msg-buffer.c 2001/10/26 12:42:42 1.1 ++++ src/IIOP/giop-msg-buffer.c 2001/10/26 12:42:53 +@@ -197,7 +197,17 @@ + sum); + } + #endif +- res = writev(fd, curvec, nvecs); ++ for(sum = 0, t = 0; t < nvecs; t++) { ++ do { ++ res = write(fd, curvec[t].iov_base, curvec[t].iov_len); ++ } while (res < 0 && errno == EAGAIN); ++ if (res < 0) { ++ break; ++ } else ++ sum += res; ++ } ++ if (res >= 0) ++ res = sum; + + sum = (GIOP_MESSAGE_BUFFER(send_buffer)->message_header.message_size + sizeof(GIOPMessageHeader)); + if(res < sum) { diff --git a/devel/ORBit2/Makefile b/devel/ORBit2/Makefile index c4ad0ddc44f7..8426c47c1730 100644 --- a/devel/ORBit2/Makefile +++ b/devel/ORBit2/Makefile @@ -7,7 +7,7 @@ PORTNAME= ORBit PORTVERSION= 0.5.10 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= stable/sources/ORBit diff --git a/devel/ORBit2/files/patch-src::IIOP::giop-msg-buffer.c b/devel/ORBit2/files/patch-src::IIOP::giop-msg-buffer.c new file mode 100644 index 000000000000..a42320410527 --- /dev/null +++ b/devel/ORBit2/files/patch-src::IIOP::giop-msg-buffer.c @@ -0,0 +1,24 @@ + +$FreeBSD$ + +--- src/IIOP/giop-msg-buffer.c 2001/10/26 12:42:42 1.1 ++++ src/IIOP/giop-msg-buffer.c 2001/10/26 12:42:53 +@@ -197,7 +197,17 @@ + sum); + } + #endif +- res = writev(fd, curvec, nvecs); ++ for(sum = 0, t = 0; t < nvecs; t++) { ++ do { ++ res = write(fd, curvec[t].iov_base, curvec[t].iov_len); ++ } while (res < 0 && errno == EAGAIN); ++ if (res < 0) { ++ break; ++ } else ++ sum += res; ++ } ++ if (res >= 0) ++ res = sum; + + sum = (GIOP_MESSAGE_BUFFER(send_buffer)->message_header.message_size + sizeof(GIOPMessageHeader)); + if(res < sum) { |