changeset 1018:f8dc8a133c2a

2008-08-14 Matthias Klose <doko@ubuntu.com> * patches/icedtea-jdk-use-ssize_t.patch: New. * Makefile.am (ICEDTEA_PATCHES): Add patch.
author doko@ubuntu.com
date Thu, 14 Aug 2008 22:43:19 +0200
parents 1ff78f827345
children 994664294f98
files ChangeLog Makefile.am patches/icedtea-jdk-use-ssize_t.patch
diffstat 3 files changed, 39 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Aug 14 17:00:18 2008 +0100
+++ b/ChangeLog	Thu Aug 14 22:43:19 2008 +0200
@@ -1,3 +1,8 @@
+2008-08-14  Matthias Klose  <doko@ubuntu.com>
+
+	* patches/icedtea-jdk-use-ssize_t.patch: New.
+	* Makefile.am (ICEDTEA_PATCHES): Add patch.
+
 2008-08-14  Andrew Haley  <aph@redhat.com>
 
 	* ports/hotspot/src/share/vm/shark/sharkBuilder.cpp
--- a/Makefile.am	Thu Aug 14 17:00:18 2008 +0100
+++ b/Makefile.am	Thu Aug 14 22:43:19 2008 +0200
@@ -501,6 +501,7 @@
 	patches/icedtea-alpha-fixes.patch \
 	patches/icedtea-alt-jar.patch \
 	patches/icedtea-enum-bug-181.patch \
+	patches/icedtea-jdk-use-ssize_t.patch \
 	$(SHARK_PATCH) \
 	$(GCC_PATCH) \
 	patches/icedtea-arch.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/icedtea-jdk-use-ssize_t.patch	Thu Aug 14 22:43:19 2008 +0200
@@ -0,0 +1,33 @@
+--- openjdk/jdk/src/solaris/hpi/native_threads/src/sys_api_td.c.old	2008-07-10 21:58:39.000000000 +0200
++++ openjdk/jdk/src/solaris/hpi/native_threads/src/sys_api_td.c	2008-08-03 16:26:16.000000000 +0200
+@@ -380,12 +380,12 @@
+     return socket(domain, type, protocol);
+ }
+ 
+-ssize_t
++SSIZE_T
+ sysRecv(int fd, char *buf, int nBytes, int flags) {
+     INTERRUPT_IO(recv(fd, buf, nBytes, flags))
+ }
+ 
+-ssize_t
++SSIZE_T
+ sysSend(int fd, char *buf, int nBytes, int flags) {
+     INTERRUPT_IO(send(fd, buf, nBytes, flags))
+ }
+@@ -595,13 +595,13 @@
+ /*
+  * Routines to do datagrams
+  */
+-ssize_t
++SSIZE_T
+ sysSendTo(int fd, char *buf, int len,
+           int flags, struct sockaddr *to, int tolen) {
+     INTERRUPT_IO(sendto(fd, buf, len, flags, to, tolen))
+ }
+ 
+-ssize_t
++SSIZE_T
+ sysRecvFrom(int fd, char *buf, int nBytes,
+             int flags, struct sockaddr *from, int *fromlen) {
+     INTERRUPT_IO(recvfrom(fd, buf, nBytes, flags, from, (uint *)fromlen))