This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: darwin & socklen_t
- From: toa at pop dot agri dot ch
- To: tromey at redhat dot com
- Cc: konqueror at gmx dot de,java-patches at gcc dot gnu dot org
- Date: Tue, 26 Nov 2002 07:41:35 +0100
- Subject: Re: darwin & socklen_t
-- Original Message --
>>>>>> "Andreas" == Andreas Tobler <toa@pop.agri.ch> writes:
>
>Andreas> removing both instances, from natPlainDatagramSocketImpl.cc and
>from
>Andreas> natPlainSocketImpl.cc, and having the above only in posix.h compiles.
>Andreas> I try to do a complete build today.
>Andreas> Was this the meaning?
>
>Yes. Thanks for trying this.
>I'll fix it in cvs tomorrow.
I'm in progress doing a bootstrap on powerpc-linux and I rebuild darwin
libjava now with the following patch. Let you know about success soon. Sorry
if the format is not ok, but I can only use webmail here.
Andreas
--- include/posix.h.orig Tue Nov 26 07:21:28 2002
+++ include/posix.h Tue Nov 26 07:24:04 2002
@@ -58,6 +58,10 @@
#ifndef DISABLE_JAVA_NET
+#ifndef HAVE_SOCKLEN_T
+#define socklen_t int
+#endif
+
static inline int
_Jv_socket (int domain, int type, int protocol)
{
--- java/net/natPlainSocketImpl.cc.orig Tue Nov 26 06:28:41 2002
+++ java/net/natPlainSocketImpl.cc Tue Nov 26 06:28:34 2002
@@ -61,9 +61,6 @@
#include <bstring.h>
#endif
-#ifndef HAVE_SOCKLEN_T
-typedef int socklen_t;
-#endif
#include <gcj/cni.h>
#include <gcj/javaprims.h>
--- java/net/natPlainDatagramSocketImpl.cc.orig Tue Nov 26 06:27:41 2002
+++ java/net/natPlainDatagramSocketImpl.cc Tue Nov 26 06:27:38 2002
@@ -151,9 +151,6 @@
#else /* DISABLE_JAVA_NET */
-#ifndef HAVE_SOCKLEN_T
-typedef int socklen_t;
-#endif
union SockAddr
{