]> granicus.if.org Git - apache/commitdiff
if compilation is doomed due to lack of thread support, fail
authorJeff Trawick <trawick@apache.org>
Wed, 5 Dec 2001 15:01:15 +0000 (15:01 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 5 Dec 2001 15:01:15 +0000 (15:01 +0000)
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

modules/experimental/mod_mem_cache.c

index 95ff4f386922ea606459fa36d42dd70c09ebf237..b4683e41dde3f55c929a5f4447edacaceff8bfe8 100644 (file)
 #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;