mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 14:02:05 -04:00
1217. [port] linux: make handling EINVAL from socket() no longer
conditional on #ifdef LINUX.
This commit is contained in:
parent
c61ec97ae0
commit
0a1fa37641
2 changed files with 4 additions and 3 deletions
3
CHANGES
3
CHANGES
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue