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-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6499b0d8471ea937bc3892ff1979ab816d1c4e43;p=apache 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 95ff4f3869..b4683e41dd 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;