mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-17 14:00:30 +08:00
move socket.h before errno.h so EWOULDBLOCK is defined on NT
This commit is contained in:
parent
a650d73230
commit
628f679f0b
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user