diff options
author | Paul Willoughby <paulw@spacemonkey.com> | 2018-09-26 11:53:14 -0600 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2018-11-26 11:05:22 +0100 |
commit | 0bba1ce1129e79fa3907b16b31da44670fa19fc5 (patch) | |
tree | ef3b3bca4eef6f07e4234cb5427ceacfc04e1768 /main.c | |
parent | 2ed3341605701d8c1a4b36e82376cfd02de4e44f (diff) |
uhttpd: fix building without TLS and Lua support
Adds ifdefs to fix building without TLS and Lua support
Signed-off-by: Paul Willoughby <paulw@spacemonkey.com>
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -220,6 +220,7 @@ static void fixup_prefix(char *str) str[len + 1] = 0; } +#ifdef HAVE_LUA static void add_lua_prefix(const char *prefix, const char *handler) { struct lua_prefix *p; char *pprefix, *phandler; @@ -236,6 +237,7 @@ static void add_lua_prefix(const char *prefix, const char *handler) { list_add_tail(&p->list, &conf.lua_prefix); } +#endif int main(int argc, char **argv) { |