Commit 628f679f authored by Gary Williams's avatar Gary Williams
Browse files

move socket.h before errno.h so EWOULDBLOCK is defined on NT

parent a650d732
......@@ -2,9 +2,9 @@
#include <stdio.h>
#include <ac/socket.h>
#include <ac/errno.h>
#include <ac/signal.h>
#include <ac/socket.h>
#include <ac/string.h>
#include <ac/time.h>
......@@ -133,6 +133,7 @@ int connections_shutdown(void)
}
ldap_pvt_thread_mutex_unlock( &connections_mutex );
return 0;
}
static Connection* connection_get( int s )
......
......@@ -4,9 +4,9 @@
#include <stdio.h>
#include <ac/socket.h>
#include <ac/errno.h>
#include <ac/signal.h>
#include <ac/socket.h>
#include <ac/string.h>
#include <ac/time.h>
#include <ac/unistd.h> /* get close() */
......@@ -341,7 +341,7 @@ send_search_entry(
if ( connection_state_closing( conn ) ) {
ldap_pvt_thread_mutex_unlock( &conn->c_mutex );
ldap_pvt_thread_mutex_unlock( &conn->c_write_mutex );
return;
return 0;
}
if ( ber_flush( &conn->c_sb, ber, 1 ) == 0 ) {
......
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