From d3eec82445206ea746d15049164893b8a71af6b7 Mon Sep 17 00:00:00 2001 From: oetiker Date: Mon, 24 Mar 2003 22:08:20 +0000 Subject: [PATCH] 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 --- src/rrd_thread_safe.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.11.0