libmemcached: fix char*strerror_r() handling
authorMichael Wallner <mike@php.net>
Tue, 15 Sep 2020 17:39:25 +0000 (19:39 +0200)
committerMichael Wallner <mike@php.net>
Tue, 15 Sep 2020 17:39:25 +0000 (19:39 +0200)
src/libmemcached/error.cc

index f0f0d97c1f23ce9487a68df8ff1db3838b86ae5a..c0e82d90238db6f2c098183487d241f4809a6b4f 100644 (file)
@@ -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));