Don't define memcached_return_t if libmemcached is unavailable
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 6 Feb 2014 14:46:39 +0000 (15:46 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 6 Feb 2014 14:46:39 +0000 (15:46 +0100)
src/zoom-memcached.c

index 6686bd5..66aeeb8 100644 (file)
 #include <yaz/log.h>
 #include <yaz/diagbib1.h>
 
+#if HAVE_LIBMEMCACHED_MEMCACHED_H
 #if HAVE_MEMCACHED_RETURN_T
 #else
 typedef memcached_return memcached_return_t;
 #endif
+#endif
 
 void ZOOM_memcached_init(ZOOM_connection c)
 {