packages/net/mosquitto/patches/100-libwebsockets-fixes.patch
Karl Palsson 7c2f386e2d net: mosquitto: Fix libwebsockets detection
Patch suggested from upstream.  Bumping release and including the patch
directly until a point release is available.

Signed-off-by: Karl Palsson <karlp@remake.is>
2015-02-23 15:24:37 +00:00

13 lines
446 B
Diff

diff --git a/src/websockets.c b/src/websockets.c
index 95f8a81..cf2b5e7 100644
--- a/src/websockets.c
+++ b/src/websockets.c
@@ -72,7 +72,7 @@ struct libws_http_data {
FILE *fptr;
};
-#ifndef HTTP_STATUS_NOT_FOUND
+#ifndef LWS_FEATURE_SERVE_HTTP_FILE_HAS_OTHER_HEADERS_ARG
/* This is libwebsockets 1.2.x or earlier, we have to degrade our capabilities.
* Once lws 1.3 is widely available this should be removed. */
# define LWS_IS_OLD