From ca44730b36057bb551d4bd7bee79a9bb02dd6d19 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Mon, 27 Jun 2016 05:53:38 +0800 Subject: [PATCH] dlfcn h only if plugins Signed-off-by: None --- lib/lws-plat-unix.c | 2 ++ lib/server.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/lws-plat-unix.c b/lib/lws-plat-unix.c index 773ed9f3..0551ad65 100644 --- a/lib/lws-plat-unix.c +++ b/lib/lws-plat-unix.c @@ -3,7 +3,9 @@ #include #include +#ifdef LWS_WITH_PLUGINS #include +#endif #include diff --git a/lib/server.c b/lib/server.c index c9cf9b2e..4d49f836 100644 --- a/lib/server.c +++ b/lib/server.c @@ -2543,7 +2543,7 @@ lws_chunked_html_process(struct lws_process_html_args *args, } if ((!s->pos && *sp == '$') || s->pos) { - int hits = 0, hit; + int hits = 0, hit = 0; if (!s->pos) s->start = sp;