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.verplant.org/?a=commitdiff_plain;h=d3eec82445206ea746d15049164893b8a71af6b7;p=rrdtool.git strerror should not turn us recursive here ... -- Peter Stamfest git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@194 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_thread_safe.c b/src/rrd_thread_safe.c index 5b8ffaf..89b91d5 100644 --- a/src/rrd_thread_safe.c +++ b/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;