2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 22:45:39 +00:00

595. [port] On Linux 2.2, socket() returns EINVAL when it

should return EAFNOSUPPORT.  Work around this.
This commit is contained in:
Brian Wellington
2000-12-06 01:53:38 +00:00
parent 68076411d5
commit 17aac384e0
2 changed files with 11 additions and 1 deletions

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: socket.c,v 1.173 2000/12/06 00:30:32 tale Exp $ */
/* $Id: socket.c,v 1.174 2000/12/06 01:53:38 bwelling Exp $ */
#include <config.h>
@@ -1264,6 +1264,13 @@ 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: