From: Jeff Trawick Date: Wed, 5 Dec 2001 15:01:15 +0000 (+0000) Subject: if compilation is doomed due to lack of thread support, fail X-Git-Tag: 2.0.30~286 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=dc9823dcb810f03de0483d417ad9dab1f0b0d295;p=thirdparty%2Fapache%2Fhttpd.git if compilation is doomed due to lack of thread support, fail the compile with a nicer message (hopefully this is only temporary?) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92338 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/experimental/mod_mem_cache.c b/modules/experimental/mod_mem_cache.c index 95ff4f38692..b4683e41dde 100644 --- a/modules/experimental/mod_mem_cache.c +++ b/modules/experimental/mod_mem_cache.c @@ -62,6 +62,10 @@ #include "ap_mpm.h" #include "apr_thread_mutex.h" +#if !APR_HAS_THREADS +#error This module does not currently compile unless you have a thread-capable APR. Sorry! +#endif + #define MAX_CACHE 5000 module AP_MODULE_DECLARE_DATA mem_cache_module;