This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Compile errors in libgcj while building cross-compiler for MinGW
- From: Tom Tromey <tromey at redhat dot com>
- To: Ranjit Mathew <rmathew at hotmail dot com>
- Cc: java at gcc dot gnu dot org
- Date: 30 Dec 2002 16:12:28 -0700
- Subject: Re: Compile errors in libgcj while building cross-compiler for MinGW
- References: <atqino$hgl$1@main.gmane.org> <augnvh$v3n$1@main.gmane.org>
- Reply-to: tromey at redhat dot com
>>>>> "Ranjit" == Ranjit Mathew <rmathew@hotmail.com> writes:
Ranjit> Am I the only one left here who plays with the mingw32 target?
Maybe. There seems to be a fair amount of interest in this target but
not many people to work on it. Bummer.
Ranjit> What I propose is the following:
Ranjit> 1. We define an errno alias for networking code, say "sockerrno"
Ranjit> and use it consistently in networking code that uses the Sockets
Ranjit> API.
Let's give it a name that makes it obviously a libgcj thing, like
`_Jv_platform_sockerrno'. (Or something shorter if that is too long.)
Ranjit> 2. "posix.h" merely says "#define sockerrno errno"
Ranjit> 3. "win32.h" says "#define sockerrno WSAGetLastError( )"
Ranjit> 4. "win32.h" additionally says "#define ECONNREFUSED WSAECONNREFUSED",
Ranjit> etc.
Ranjit> How does this look? The existing code would be impacted minimally,
Ranjit> I feel, by this change.
Ranjit> If it looks all right, I can post a patch for the same.
I think this seems reasonable.
Tom