From 4583401d7ec728f07d7c62b2c9cccf8e2944c7b2 Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Mon, 13 Feb 2012 11:52:44 -0800 Subject: [PATCH] Fix issue where uuid is not installed locally. --- tests/libmemcached-1.0/mem_functions.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/libmemcached-1.0/mem_functions.cc b/tests/libmemcached-1.0/mem_functions.cc index 837888ed..3707c6b3 100644 --- a/tests/libmemcached-1.0/mem_functions.cc +++ b/tests/libmemcached-1.0/mem_functions.cc @@ -113,12 +113,14 @@ public: if (HAVE_LIBUUID) { +#if defined(HAVE_LIBUUID) && HAVE_LIBUUID uuid_t out; uuid_generate(out); uuid_unparse(out, &key_buffer[0]); _keys[x]= strdup(&key_buffer[0]); (_keys[x])[UUID_STRING_MAXLENGTH]= 'x'; +#endif } else // We just use a number and pad the string if UUID is not available { -- 2.30.2