This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compile errors in libgcj while building cross-compiler for MinGW


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]