From 9d614917c3f2ca6150a5513abb7c3cdfff2dd1e7 Mon Sep 17 00:00:00 2001 From: Patrick Gansterer Date: Fri, 28 Feb 2014 00:59:53 +0100 Subject: [PATCH] Add dummy implementation when strerror() is missing Use a simple empty string for platforms without an implementation. --- lib/private-libwebsockets.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/private-libwebsockets.h b/lib/private-libwebsockets.h index e27c3c2a..53aada5f 100644 --- a/lib/private-libwebsockets.h +++ b/lib/private-libwebsockets.h @@ -105,6 +105,10 @@ #define compatible_close(fd) close(fd); #endif +#ifndef HAVE_STRERROR +#define strerror(x) "" +#endif + #ifdef LWS_OPENSSL_SUPPORT #ifdef USE_CYASSL #include