Cygwin: make socketpair an AF_LOCAL-only method

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen
2018-02-22 16:25:28 +01:00
parent a3b5795b06
commit 84c5e0fd3d
4 changed files with 5 additions and 32 deletions

View File

@ -136,16 +136,6 @@ fhandler_socket_inet::socket (int af, int type, int protocol, int flags)
return ret;
}
/* socketpair is called on the fhandler handling the accepting socket,
fh_out is the fhandler for the connecting socket. */
int
fhandler_socket_inet::socketpair (int af, int type, int protocol, int flags,
fhandler_socket *fh_out)
{
set_errno (EAFNOSUPPORT);
return -1;
}
int
fhandler_socket_inet::bind (const struct sockaddr *name, int namelen)
{