Date: Tue, 25 Nov 1997 17:36:20 +0200 (IST) From: Eli Zaretskii To: Wojtek Galazka cc: djgpp-workers AT delorie DOT com Subject: Re: errno constants in In-Reply-To: <9711251502.AA09009@dodek.chem.uw.edu.pl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.