From: Michael Wallner Date: Tue, 15 Sep 2020 17:39:25 +0000 (+0200) Subject: libmemcached: fix char*strerror_r() handling X-Git-Tag: 1.1.0-beta1~236^2~59 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=086b2c5253e61f05b9ef497e494e34eb5a44ba51;p=awesomized%2Flibmemcached libmemcached: fix char*strerror_r() handling --- diff --git a/src/libmemcached/error.cc b/src/libmemcached/error.cc index f0f0d97c..c0e82d90 100644 --- a/src/libmemcached/error.cc +++ b/src/libmemcached/error.cc @@ -167,7 +167,7 @@ static void _set(Memcached& memc, memcached_string_t *str, memcached_return_t &r errmsg[0]= 0; errmsg_ptr= errmsg; -#if defined(STRERROR_R_CHAR_P) && STRERROR_R_CHAR_P +#if defined(HAVE_STRERROR_R_CHAR_P) && HAVE_STRERROR_R_CHAR_P errmsg_ptr= strerror_r(local_errno, errmsg, sizeof(errmsg)); #elif defined(HAVE_STRERROR_R) && HAVE_STRERROR_R strerror_r(local_errno, errmsg, sizeof(errmsg));