X-Git-Url: https://git.tokkee.org/?p=pkg-rrdtool.git;a=blobdiff_plain;f=src%2Frrd_thread_safe.c;h=e1e3cbeaa1b660b3b698de0f504738c4ec961683;hp=993e3e7b038e7dbfa92af921dfb1f608c6806eb9;hb=645054bac6187b0e83fd4125fd59e4feda216b64;hpb=ffa00ac697dccce18dca8880ca7a14066521ac5c diff --git a/src/rrd_thread_safe.c b/src/rrd_thread_safe.c index 993e3e7..e1e3cbe 100644 --- a/src/rrd_thread_safe.c +++ b/src/rrd_thread_safe.c @@ -6,7 +6,7 @@ ***************************************************************************** * 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 @@ -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')