From: Brian Aker Date: Mon, 13 Feb 2012 19:52:44 +0000 (-0800) Subject: Fix issue where uuid is not installed locally. X-Git-Tag: 1.0.5~52 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=4583401d7ec728f07d7c62b2c9cccf8e2944c7b2;p=awesomized%2Flibmemcached Fix issue where uuid is not installed locally. --- 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 {