summaryrefslogtreecommitdiff
path: root/sasl_defs.c
diff options
context:
space:
mode:
authorDustin Sallings <dustin@spy.net>2012-01-27 23:33:17 -0800
committerDustin Sallings <dustin@spy.net>2012-01-27 23:53:33 -0800
commit39d59a902135188359027762e804a9560222e52b (patch)
tree58452ab2593d5e45bf683c440afe686d6b9731d5 /sasl_defs.c
parent29bfd5a17fd35de1d044eba9c17fe84a0b3b58ff (diff)
downloadmemcached-39d59a902135188359027762e804a9560222e52b.tar.gz
build fix: Define sasl_callback_ft on older versions of sasl.
They just changed this randomly with no way to really detect it. You can read about it here: http://lists.andrew.cmu.edu/pipermail/cyrus-sasl/2011-September/002340.html
Diffstat (limited to 'sasl_defs.c')
-rw-r--r--sasl_defs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sasl_defs.c b/sasl_defs.c
index 46a0866..0f405d0 100644
--- a/sasl_defs.c
+++ b/sasl_defs.c
@@ -16,6 +16,10 @@ const char * const locations[] = {
};
#endif
+#if SASL_VERSION_FULL < 0x20125
+typedef int (*sasl_callback_ft)(void);
+#endif
+
#ifdef ENABLE_SASL_PWDB
#define MAX_ENTRY_LEN 256