From 49d0ce17d5d519e6bf4b67bb47badb4d30626bef Mon Sep 17 00:00:00 2001 From: Michael Haberler Date: Mon, 1 Dec 2014 14:05:51 +0100 Subject: [PATCH] Subject: [PATCH] serve_http_file: add feature test macro for API change introduced in 917f43 --- lib/libwebsockets.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/libwebsockets.h b/lib/libwebsockets.h index fa92f46..0713b18 100644 --- a/lib/libwebsockets.h +++ b/lib/libwebsockets.h @@ -160,6 +160,9 @@ LWS_VISIBLE LWS_EXTERN void lwsl_hexdump(void *buf, size_t len); /* you can call lws_get_peer_write_allowance */ #define LWS_FEATURE_PROTOCOLS_HAS_PEER_WRITE_ALLOWANCE +/* extra parameter introduced in 917f43ab821 */ +#define LWS_FEATURE_SERVE_HTTP_FILE_HAS_OTHER_HEADERS_LEN + enum libwebsocket_context_options { LWS_SERVER_OPTION_REQUIRE_VALID_OPENSSL_CLIENT_CERT = 2, LWS_SERVER_OPTION_SKIP_SERVER_CANONICAL_NAME = 4, -- 2.7.4