dlfcn h only if plugins
authorAndy Green <andy@warmcat.com>
Sun, 26 Jun 2016 21:53:38 +0000 (05:53 +0800)
committerAndy Green <andy@warmcat.com>
Thu, 14 Jul 2016 00:57:27 +0000 (08:57 +0800)
Signed-off-by: None <andy@warmcat.com>
lib/lws-plat-unix.c
lib/server.c

index 773ed9f..0551ad6 100644 (file)
@@ -3,7 +3,9 @@
 #include <pwd.h>
 #include <grp.h>
 
+#ifdef LWS_WITH_PLUGINS
 #include <dlfcn.h>
+#endif
 #include <dirent.h>
 
 
index c9cf9b2..4d49f83 100644 (file)
@@ -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;