Add dummy implementation when strerror() is missing
authorPatrick Gansterer <paroga@paroga.com>
Thu, 27 Feb 2014 23:59:53 +0000 (00:59 +0100)
committerAndy Green <andy.green@linaro.org>
Fri, 28 Feb 2014 00:57:01 +0000 (08:57 +0800)
Use a simple empty string for platforms without an implementation.

lib/private-libwebsockets.h

index e27c3c2..53aada5 100644 (file)
 #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>