mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
dup() does not work on WinSock sockets.
This commit is contained in:
parent
c62f6d124c
commit
a376cb1002
1 changed files with 4 additions and 0 deletions
|
|
@ -58,7 +58,11 @@ int lutil_pair( ber_socket_t sds[2] )
|
|||
}
|
||||
|
||||
sds[0] = sd;
|
||||
#if !HAVE_WINSOCK
|
||||
sds[1] = dup( sds[0] );
|
||||
#else
|
||||
sds[1] = sds[0];
|
||||
#endif
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue