From 086b2c5253e61f05b9ef497e494e34eb5a44ba51 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 15 Sep 2020 19:39:25 +0200 Subject: [PATCH] libmemcached: fix char*strerror_r() handling --- src/libmemcached/error.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.30.2