Fix for sasl compile.
[m6w6/libmemcached] / tests / libmemcached-1.0 / setup_and_teardowns.cc
index 84f57abe2cc85b0c44218fe5d3353a314a4df8e1..093be4906f2b3998c7ce211575dfbbda442939b7 100644 (file)
 
 #include <sys/stat.h>
 
+using namespace libtest;
+
+memcached_return_t return_value_based_on_buffering(memcached_st *memc)
+{
+  if (memcached_behavior_get(memc, MEMCACHED_BEHAVIOR_BUFFER_REQUESTS))
+  {
+    return MEMCACHED_BUFFERED;
+  }
+
+  return MEMCACHED_SUCCESS;
+}
+
 /**
   @note This should be testing to see if the server really supports the binary protocol.
 */