Compile errors in libgcj while building cross-compiler for MinGW
Tom Tromey
tromey@redhat.com
Mon Dec 30 15:10:00 GMT 2002
>>>>> "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
More information about the Java
mailing list