]> git.sur5r.net Git - openldap/commitdiff
dup() does not work on WinSock sockets.
authorMark Valence <mrv@openldap.org>
Thu, 21 Dec 2000 22:38:06 +0000 (22:38 +0000)
committerMark Valence <mrv@openldap.org>
Thu, 21 Dec 2000 22:38:06 +0000 (22:38 +0000)
libraries/liblutil/sockpair.c

index 86b8f3809bbad5506837c00f4d765be6c8a377b2..1478f4d92b8d62edf896fca1db4601f0eaa6d077 100644 (file)
@@ -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
 }