summaryrefslogtreecommitdiff
path: root/src/mod_cml.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mod_cml.c')
-rw-r--r--src/mod_cml.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mod_cml.c b/src/mod_cml.c
index 16abd589..cd231ded 100644
--- a/src/mod_cml.c
+++ b/src/mod_cml.c
@@ -49,7 +49,7 @@ FREE_FUNC(mod_cml_free) {
buffer_free(s->power_magnet);
array_free(s->mc_hosts);
-#if defined(USE_MEMCACHED)
+#if defined(WITH_MEMCACHED)
if (s->memc) memcached_free(s->memc);
#endif
@@ -94,7 +94,7 @@ SETDEFAULTS_FUNC(mod_cml_set_defaults) {
s->mc_hosts = array_init();
s->mc_namespace = buffer_init();
s->power_magnet = buffer_init();
-#if defined(USE_MEMCACHED)
+#if defined(WITH_MEMCACHED)
s->memc = NULL;
#endif
@@ -116,7 +116,7 @@ SETDEFAULTS_FUNC(mod_cml_set_defaults) {
}
if (s->mc_hosts->used) {
-#if defined(USE_MEMCACHED)
+#if defined(WITH_MEMCACHED)
buffer *option_string = buffer_init();
size_t k;
@@ -162,7 +162,7 @@ static int mod_cml_patch_connection(server *srv, connection *con, plugin_data *p
plugin_config *s = p->config_storage[0];
PATCH(ext);
-#if defined(USE_MEMCACHED)
+#if defined(WITH_MEMCACHED)
PATCH(memc);
#endif
PATCH(mc_namespace);
@@ -183,7 +183,7 @@ static int mod_cml_patch_connection(server *srv, connection *con, plugin_data *p
if (buffer_is_equal_string(du->key, CONST_STR_LEN("cml.extension"))) {
PATCH(ext);
} else if (buffer_is_equal_string(du->key, CONST_STR_LEN("cml.memcache-hosts"))) {
-#if defined(USE_MEMCACHED)
+#if defined(WITH_MEMCACHED)
PATCH(memc);
#endif
} else if (buffer_is_equal_string(du->key, CONST_STR_LEN("cml.memcache-namespace"))) {