From a376cb100231e7e74f9526a636ad0ccf9a6742bd Mon Sep 17 00:00:00 2001 From: Mark Valence Date: Thu, 21 Dec 2000 22:38:06 +0000 Subject: [PATCH] dup() does not work on WinSock sockets. --- libraries/liblutil/sockpair.c | 4 ++++ 1 file changed, 4 insertions(+) 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 } -- 2.39.5