1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00

dlfcn h only if plugins

Signed-off-by: None <andy@warmcat.com>
This commit is contained in:
Andy Green 2016-06-27 05:53:38 +08:00
parent 014481e912
commit ca44730b36
2 changed files with 3 additions and 1 deletions

View file

@ -3,7 +3,9 @@
#include <pwd.h>
#include <grp.h>
#ifdef LWS_WITH_PLUGINS
#include <dlfcn.h>
#endif
#include <dirent.h>

View 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;