[rrd-developers] [PATCH 2/2] Silence warnings when STRERROR_R_CHAR_P is not defined.
kevin brintnall
kbrint at rufus.net
Thu Jul 9 19:47:49 CEST 2009
---
src/rrd_thread_safe.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/rrd_thread_safe.c b/src/rrd_thread_safe.c
index 6e30115..e1e3cbe 100644
--- a/src/rrd_thread_safe.c
+++ b/src/rrd_thread_safe.c
@@ -66,7 +66,7 @@ const char *rrd_strerror(
/* Even though POSIX/XSI requires "strerror_r" to return an "int", some
* systems (e.g. the GNU libc) return a "char *" _and_ ignore the second
* argument ... -tokkee */
-#if STRERROR_R_CHAR_P
+#ifdef STRERROR_R_CHAR_P
ret = strerror_r(err, ctx->lib_errstr, sizeof(ctx->lib_errstr));
if ((! ret) || (*ret == '\0')) {
if (*ctx->lib_errstr != '\0')
--
1.6.3.1
More information about the rrd-developers
mailing list