1217. [port] linux: make handling EINVAL from socket() no longer

conditional on #ifdef LINUX.
This commit is contained in:
Mark Andrews 2002-06-03 06:31:16 +00:00
parent c61ec97ae0
commit 0a1fa37641
2 changed files with 4 additions and 3 deletions

View file

@ -1,3 +1,6 @@
1217. [port] linux: make handling EINVAL from socket() no longer
conditional on #ifdef LINUX.
1216. [bug] isc_log_closefilelogs() needed to lock the log
context.

View file

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: socket.c,v 1.226 2002/05/27 00:40:22 marka Exp $ */
/* $Id: socket.c,v 1.227 2002/06/03 06:31:16 marka Exp $ */
#include <config.h>
@ -1338,13 +1338,11 @@ isc_socket_create(isc_socketmgr_t *manager, int pf, isc_sockettype_t type,
case EPROTONOSUPPORT:
case EPFNOSUPPORT:
case EAFNOSUPPORT:
#ifdef LINUX
/*
* Linux 2.2 (and maybe others) return EINVAL instead of
* EAFNOSUPPORT.
*/
case EINVAL:
#endif
return (ISC_R_FAMILYNOSUPPORT);
default: