projects
/
awesomized
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
ede61cb
)
libmemcached: fix char*strerror_r() handling
author
Michael Wallner
<mike@php.net>
Tue, 15 Sep 2020 17:39:25 +0000
(19:39 +0200)
committer
Michael Wallner
<mike@php.net>
Tue, 15 Sep 2020 17:39:25 +0000
(19:39 +0200)
src/libmemcached/error.cc
patch
|
blob
|
history
diff --git
a/src/libmemcached/error.cc
b/src/libmemcached/error.cc
index f0f0d97c1f23ce9487a68df8ff1db3838b86ae5a..c0e82d90238db6f2c098183487d241f4809a6b4f 100644
(file)
--- 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));