Code

still trying to get the order of calling autotools right
[rrdtool.git] / src / rrd_thread_safe.c
index 5b8ffafaf4c8deed2ce8e72497ef809d71577c69..89b91d5e73414ccec40cb9c448f79150e6309f09 100644 (file)
@@ -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;