From 628f679f0b3ccf5bb979042a62b4ad8c0caa9d26 Mon Sep 17 00:00:00 2001 From: Gary Williams Date: Thu, 6 May 1999 14:46:48 +0000 Subject: [PATCH] move socket.h before errno.h so EWOULDBLOCK is defined on NT --- servers/slapd/connection.c | 3 ++- servers/slapd/result.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index e7acc3e9ce..322c44d597 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -2,9 +2,9 @@ #include +#include #include #include -#include #include #include @@ -133,6 +133,7 @@ int connections_shutdown(void) } ldap_pvt_thread_mutex_unlock( &connections_mutex ); + return 0; } static Connection* connection_get( int s ) diff --git a/servers/slapd/result.c b/servers/slapd/result.c index 12bb7c07db..77f3b3a913 100644 --- a/servers/slapd/result.c +++ b/servers/slapd/result.c @@ -4,9 +4,9 @@ #include +#include #include #include -#include #include #include #include /* 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 ) { -- 2.39.5