From: Mark Valence Date: Thu, 21 Dec 2000 22:38:06 +0000 (+0000) Subject: dup() does not work on WinSock sockets. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1623 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a376cb100231e7e74f9526a636ad0ccf9a6742bd;p=openldap dup() does not work on WinSock sockets. --- diff --git a/libraries/liblutil/sockpair.c b/libraries/liblutil/sockpair.c index 86b8f3809b..1478f4d92b 100644 --- a/libraries/liblutil/sockpair.c +++ b/libraries/liblutil/sockpair.c @@ -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 }