From 67d52437eb384f4c7ec43df26ad44eaa243a1b67 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@194 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_thread_safe.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2