Adds ifdefs to fix building without TLS and Lua support
Signed-off-by: Paul Willoughby <paulw@spacemonkey.com>
if (!s->eof || s->w.data_bytes)
return;
+#ifdef HAVE_TLS
if (cl->tls && cl->ssl.conn && cl->ssl.conn->w.data_bytes) {
cl->ssl.conn->eof = s->eof;
if (!ustream_write_pending(cl->ssl.conn))
return;
}
+#endif
}
return client_close(cl);
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;
list_add_tail(&p->list, &conf.lua_prefix);
}
+#endif
int main(int argc, char **argv)
{