From: Jeff Trawick Date: Fri, 27 Apr 2001 18:02:21 +0000 (+0000) Subject: Get mod_tls to compile/work better on Windows. X-Git-Tag: 2.0.18~147 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=464de0abc146645170bdc59046ccf2a9791883ab;p=apache Get mod_tls to compile/work better on Windows. PR: 7612 Submitted by: Bernhard Schrenk Reviewed by: Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88955 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 6a8a4a62ca..a793518af1 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,8 @@ Changes with Apache 2.0.18-dev + *) Get mod_tls to compile/work better on Windows. PR #7612 + [Bernhard Schrenk ] + *) Fix shutdown/restart hangs in the threaded MPM. [Jeff Trawick, Greg Ames, Ryan Bloom] diff --git a/modules/tls/mod_tls.c b/modules/tls/mod_tls.c index aa764833df..1787e94b00 100644 --- a/modules/tls/mod_tls.c +++ b/modules/tls/mod_tls.c @@ -68,7 +68,7 @@ /* temp */ #include -AP_DECLARE_DATA module tls_module; +module AP_MODULE_DECLARE_DATA tls_module; static const char s_szTLSFilterName[]="TLSFilter"; typedef struct { @@ -235,7 +235,7 @@ static apr_status_t churn(TLSFilterCtx *pCtx,apr_read_type_e eReadType,apr_size_ ap_log_error(APLOG_MARK,APLOG_ERR,ret,NULL, "Read failed in tls_in_filter"); assert(eReadType == APR_NONBLOCK_READ); - assert(ret == APR_SUCCESS || ret == APR_EAGAIN); + assert(ret == APR_SUCCESS || ret == APR_STATUS_IS_EAGAIN(ret)); /* In this case, we have data in the output bucket, or we were * non-blocking, so returning nothing is fine. */ @@ -406,7 +406,7 @@ static void register_hooks(apr_pool_t *p) ap_hook_http_method(tls_method,NULL,NULL,APR_HOOK_MIDDLE); } -AP_DECLARE_DATA module tls_module = { +module AP_MODULE_DECLARE_DATA tls_module = { STANDARD20_MODULE_STUFF, NULL, /* create per-directory config structure */ NULL, /* merge per-directory config structures */ diff --git a/modules/tls/openssl_state_machine.c b/modules/tls/openssl_state_machine.c index 82c86a404a..171a1aa23d 100644 --- a/modules/tls/openssl_state_machine.c +++ b/modules/tls/openssl_state_machine.c @@ -76,9 +76,13 @@ * * This implementation acts as a server, but it can also be done for a client. */ +#include "apr.h" + #include #include +#if APR_HAVE_UNISTD_H #include +#endif #include #include #include "openssl_state_machine.h"