diff --git a/src/rrd_thread_safe.c b/src/rrd_thread_safe.c
index 993e3e7b038e7dbfa92af921dfb1f608c6806eb9..e1e3cbeaa1b660b3b698de0f504738c4ec961683 100644 (file)
--- a/src/rrd_thread_safe.c
+++ b/src/rrd_thread_safe.c
*****************************************************************************
* rrd_thread_safe.c Contains routines used when thread safety is required
*****************************************************************************
*****************************************************************************
* rrd_thread_safe.c Contains routines used when thread safety is required
*****************************************************************************
- * $Id: rrd_thread_safe.c 1752 2009-03-06 05:39:37Z oetiker $
+ * $Id$
*************************************************************************** */
#include <pthread.h>
*************************************************************************** */
#include <pthread.h>
/* 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 */
/* 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')
ret = strerror_r(err, ctx->lib_errstr, sizeof(ctx->lib_errstr));
if ((! ret) || (*ret == '\0')) {
if (*ctx->lib_errstr != '\0')