X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_thread_safe.c;h=e1e3cbeaa1b660b3b698de0f504738c4ec961683;hb=b3230fbfae987be002718a5a035db2030b880871;hp=6e30115bf7ea61a30a66435015f33adacf7269b3;hpb=7002f39fe85f0d540dd97659f18ca5347bef90f1;p=rrdtool.git 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')