From: oetiker Date: Mon, 24 Mar 2003 22:08:20 +0000 (+0000) Subject: strerror should not turn us recursive here ... -- Peter Stamfest X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=67d52437eb384f4c7ec43df26ad44eaa243a1b67;p=rrdtool-all.git strerror should not turn us recursive here ... -- Peter Stamfest git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@194 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_thread_safe.c b/program/src/rrd_thread_safe.c index 5b8ffafa..89b91d5e 100644 --- a/program/src/rrd_thread_safe.c +++ b/program/src/rrd_thread_safe.c @@ -54,6 +54,7 @@ const char *rrd_strerror(int err) { return strerror_r(err, ctx->lib_errstr, ctx->errlen); } #else +#undef strerror const char *rrd_strerror(int err) { static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; struct rrd_context *ctx;