]> git.sur5r.net Git - openldap/blobdiff - libraries/liblutil/sockpair.c
cleanup
[openldap] / libraries / liblutil / sockpair.c
index 86b8f3809bbad5506837c00f4d765be6c8a377b2..a794206daab9cc4d45f9d678b5447efbc7700f54 100644 (file)
@@ -1,7 +1,16 @@
 /* $OpenLDAP$ */
-/*
- * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
- * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
+ *
+ * Copyright 1998-2005 The OpenLDAP Foundation.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted only as authorized by the OpenLDAP
+ * Public License.
+ *
+ * A copy of this license is available in the file LICENSE in the
+ * top-level directory of the distribution or, alternatively, at
+ * <http://www.OpenLDAP.org/license.html>.
  */
 
 #include "portable.h"
@@ -58,7 +67,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
 }