Fix issue where uuid is not installed locally.
authorBrian Aker <brian@tangent.org>
Mon, 13 Feb 2012 19:52:44 +0000 (11:52 -0800)
committerBrian Aker <brian@tangent.org>
Mon, 13 Feb 2012 19:52:44 +0000 (11:52 -0800)
tests/libmemcached-1.0/mem_functions.cc

index 837888edeef3c2d03b2f932dd34b62f3dc9e182b..3707c6b3450042b99110359acc863044ce9c3ee1 100644 (file)
@@ -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
       {