X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=libtest%2Fbinaries.cc;h=2efde2f3791c4c1060a8cf83887cb237166a6932;hb=921fa70d5f91d895881c19502503cd4bd4bcabde;hp=33cde3b74700b4544e5a748e227213d068532189;hpb=70d0d339d06cbe6b35ef0efc4fd3d7e8f92b6a01;p=m6w6%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; }