mirror of
https://github.com/apache/httpd.git
synced 2025-07-25 17:01:22 +00:00
APR (and APR-util) 1.3 is a requirement for building httpd 2.4 and above.
So these compatibility tests can be removed. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1897325 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
13
modules/cache/mod_socache_memcache.c
vendored
13
modules/cache/mod_socache_memcache.c
vendored
@ -20,15 +20,6 @@
|
||||
#include "http_protocol.h"
|
||||
|
||||
#include "apr.h"
|
||||
#include "apu_version.h"
|
||||
|
||||
/* apr_memcache support requires >= 1.3 */
|
||||
#if APU_MAJOR_VERSION > 1 || \
|
||||
(APU_MAJOR_VERSION == 1 && APU_MINOR_VERSION > 2)
|
||||
#define HAVE_APU_MEMCACHE 1
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_APU_MEMCACHE
|
||||
|
||||
#include "ap_socache.h"
|
||||
#include "ap_mpm.h"
|
||||
@ -371,8 +362,6 @@ static const ap_socache_provider_t socache_mc = {
|
||||
socache_mc_iterate
|
||||
};
|
||||
|
||||
#endif /* HAVE_APU_MEMCACHE */
|
||||
|
||||
static void *create_server_config(apr_pool_t *p, server_rec *s)
|
||||
{
|
||||
socache_mc_svr_cfg *sconf = apr_pcalloc(p, sizeof(socache_mc_svr_cfg));
|
||||
@ -407,11 +396,9 @@ static const char *socache_mc_set_ttl(cmd_parms *cmd, void *dummy,
|
||||
|
||||
static void register_hooks(apr_pool_t *p)
|
||||
{
|
||||
#ifdef HAVE_APU_MEMCACHE
|
||||
ap_register_provider(p, AP_SOCACHE_PROVIDER_GROUP, "memcache",
|
||||
AP_SOCACHE_PROVIDER_VERSION,
|
||||
&socache_mc);
|
||||
#endif
|
||||
}
|
||||
|
||||
static const command_rec socache_memcache_cmds[] = {
|
||||
|
Reference in New Issue
Block a user