Mail Archives: djgpp-workers/1997/11/25/10:37:56
On Tue, 25 Nov 1997, Wojtek Galazka wrote:
> And the BSD docs say the following
>
> #define ESOCKTNOSUPPORT 44 /* Socket type not supported*/
44 is outside the range of errno values defined by DJGPP. You can just
add the definition fo ESOCKTNOSUPPORT without changing the existing
values.
> The other solution seems to be in translating "on the fly"
> (==on the occurence of the error) from winsock error codes to
> DJGPP errno codes which would sit above all EA*'s defined so far
If the values that sockets use overlap and conflict with those defined in
errno.h, I would suggest to write a wrapper around sockets calls that
would translate the codes into DJGPP's values.
But I would imagine that most errno codes relevant for sockets aren't
defined at all by DJGPP, so you could just add them.
- Raw text -