commit | 9d614917c3f2ca6150a5513abb7c3cdfff2dd1e7 | [log] [tgz] |
---|---|---|
author | Patrick Gansterer <paroga@paroga.com> | Fri Feb 28 00:59:53 2014 +0100 |
committer | Andy Green <andy.green@linaro.org> | Fri Feb 28 08:57:01 2014 +0800 |
tree | a49725c3cfcf151859b5bbb307dbb21199912d67 | |
parent | e5720a347eff451ce31e23edbf4742a11a4b1128 [diff] |
Add dummy implementation when strerror() is missing Use a simple empty string for platforms without an implementation.
diff --git a/lib/private-libwebsockets.h b/lib/private-libwebsockets.h index e27c3c2..53aada5 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 <cyassl/openssl/ssl.h>