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

@@ -241,7 +241,7 @@ fhandler_socket_local::socket (int af, int type, int protocol, int flags)
int
fhandler_socket_local::socketpair (int af, int type, int protocol, int flags,
fhandler_socket *_fh_out)
fhandler_socket_local *fh_out)
{
SOCKET insock = INVALID_SOCKET;
SOCKET outsock = INVALID_SOCKET;
@@ -249,7 +249,6 @@ fhandler_socket_local::socketpair (int af, int type, int protocol, int flags,
struct sockaddr_in sock_in, sock_out;
int len;
fhandler_socket_local *fh_out = (fhandler_socket_local *) _fh_out;
/* create listening socket */
sock = ::socket (AF_INET, type, 0);
if (sock == INVALID_SOCKET)