mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-03 16:30:29 +00:00
Updated the implementation of socketpair for Windows with AF_UNIX to call either the _dgram od _stream version of socketpair()
This commit is contained in:
parent
7ae7010aa7
commit
507b85de51
1 changed files with 3 additions and 1 deletions
|
@ -60,7 +60,9 @@ int socketpair(int family, int type, int protocol, int sv[2]) {
|
|||
* works with type==SOCK_STREAM and not with
|
||||
* SOCK_DGRAM (as well as SOCK_SEQPACKET)
|
||||
*/
|
||||
return sys_socketpair_nt_stream(AF_INET, SOCK_STREAM, 0, sv);
|
||||
|
||||
/* Force to build an AF_INET socketpair */
|
||||
family = AF_INET;
|
||||
/*
|
||||
errno = EAFNOSUPPORT;
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue