projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5720a3
)
Add dummy implementation when strerror() is missing
author
Patrick Gansterer
<paroga@paroga.com>
Thu, 27 Feb 2014 23:59:53 +0000
(
00:59
+0100)
committer
Andy 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
patch
|
blob
|
history
diff --git
a/lib/private-libwebsockets.h
b/lib/private-libwebsockets.h
index
e27c3c2
..
53aada5
100644
(file)
--- 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>