X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fbinaries.cc;h=2efde2f3791c4c1060a8cf83887cb237166a6932;hb=cb08b8d0a35a78bde8a5b4caccab5dd2d789cca3;hp=33cde3b74700b4544e5a748e227213d068532189;hpb=751e342e158ae65052ce098ccd64aa54e39312db;p=awesomized%2Flibmemcached diff --git a/libtest/binaries.cc b/libtest/binaries.cc index 33cde3b7..2efde2f3 100644 --- a/libtest/binaries.cc +++ b/libtest/binaries.cc @@ -20,6 +20,7 @@ */ +#include #include namespace libtest { @@ -45,10 +46,22 @@ bool has_gearmand_binary() return false; } +bool has_drizzled_binary() +{ +#if defined(HAVE_DRIZZLED_BINARY) && HAVE_DRIZZLED_BINARY + if (access(DRIZZLED_BINARY, R_OK|X_OK) == 0) + { + return true; + } +#endif + + return false; +} + bool has_memcached_binary() { #if defined(HAVE_MEMCACHED_BINARY) && HAVE_MEMCACHED_BINARY - if (access(MEMCACHED_BINARY,R_OK|X_OK) == 0) + if (access(MEMCACHED_BINARY, R_OK|X_OK) == 0) { return true; }