projects
/
m6w6
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
3dc31b0
)
Fix issue where uuid is not installed locally.
author
Brian Aker
<brian@tangent.org>
Mon, 13 Feb 2012 19:52:44 +0000
(11:52 -0800)
committer
Brian Aker
<brian@tangent.org>
Mon, 13 Feb 2012 19:52:44 +0000
(11:52 -0800)
tests/libmemcached-1.0/mem_functions.cc
patch
|
blob
|
history
diff --git
a/tests/libmemcached-1.0/mem_functions.cc
b/tests/libmemcached-1.0/mem_functions.cc
index 837888edeef3c2d03b2f932dd34b62f3dc9e182b..3707c6b3450042b99110359acc863044ce9c3ee1 100644
(file)
--- 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
{