This is a simple patch to fix the libmemcached-1.0 API issue.

HTH,
-- 
Michael Fladischer <[email protected]>
--- a/pgmemcache.h
+++ b/pgmemcache.h
@@ -23,10 +23,8 @@
 #include "utils/guc.h"
 #include "utils/memutils.h"
 #include "utils/lsyscache.h"
-#include <libmemcached/sasl.h>
-#include <libmemcached/memcached.h>
-#include <libmemcached/server.h>
 #include <sasl/sasl.h>
+#include <libmemcached/memcached.h>
 
 #undef PACKAGE_BUGREPORT
 #undef PACKAGE_NAME
--- a/pgmemcache.c
+++ b/pgmemcache.c
@@ -28,6 +28,7 @@
 static char *memcache_sasl_authentication_username = "";
 static char *memcache_sasl_authentication_password = "";
 
+#if 0
 static sasl_callback_t sasl_callbacks[] =
 {
   { SASL_CB_USER, &get_sasl_username, NULL},
@@ -35,6 +36,7 @@
   { SASL_CB_PASS, &get_sasl_password, NULL},
   { SASL_CB_LIST_END, NULL, NULL}
 };
+#endif
 
 void _PG_init(void)
 {

Attachment: signature.asc
Description: This is a digitally signed message part



Reply via email to