Commit a376cb10 authored by Mark Valence's avatar Mark Valence
Browse files

dup() does not work on WinSock sockets.

parent c62f6d12
...@@ -58,7 +58,11 @@ int lutil_pair( ber_socket_t sds[2] ) ...@@ -58,7 +58,11 @@ int lutil_pair( ber_socket_t sds[2] )
} }
sds[0] = sd; sds[0] = sd;
#if !HAVE_WINSOCK
sds[1] = dup( sds[0] ); sds[1] = dup( sds[0] );
#else
sds[1] = sds[0];
#endif
return 0; return 0;
#endif #endif
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment