aboutsummaryrefslogtreecommitdiff
path: root/lib/roles/h1
diff options
context:
space:
mode:
authorAndy Green <andy@warmcat.com>2019-08-18 10:35:43 +0100
committerAndy Green <andy@warmcat.com>2019-08-26 09:58:57 +0100
commit0fa5563d18ce0b78cb682ebf6ea8a7389d725317 (patch)
tree697124798359ba13b6dce7660bda88994eb178a2 /lib/roles/h1
parent53038375021cb5ad8771d47c5d71aa734effcaa5 (diff)
downloadlibwebsockets-0fa5563d18ce0b78cb682ebf6ea8a7389d725317.tar.gz
freertos: rename esp32 plat to freertos
Diffstat (limited to 'lib/roles/h1')
-rw-r--r--lib/roles/h1/ops-h1.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/roles/h1/ops-h1.c b/lib/roles/h1/ops-h1.c
index a28e9e79..cb21838f 100644
--- a/lib/roles/h1/ops-h1.c
+++ b/lib/roles/h1/ops-h1.c
@@ -507,6 +507,8 @@ try_pollout:
return LWS_HPI_RET_HANDLED;
}
+#if defined(LWS_WITH_FILE_OPS)
+
/* >0 == completion, <0 == error
*
* We'll get a LWS_CALLBACK_HTTP_FILE_COMPLETION callback when
@@ -516,6 +518,7 @@ try_pollout:
n = lws_serve_http_file_fragment(wsi);
if (n < 0)
goto fail;
+#endif
return LWS_HPI_RET_HANDLED;