mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-19 11:09:42 +00:00
Test building with MG_ENABLE_FILESYSTEM=0
Fix errors so it builds. PUBLISHED_FROM=db9fc9ef997d6b1847117e8db9aefdc7e540f4cc
This commit is contained in:
1 parent
5ebff5d15e
commit
39ea91cfc2
3 files changed
+3
-4
No files matched your search
@@ -1,2 +1,3 @@
|
||||
PROG = websocket_chat
|
||||
MODULE_CFLAGS = -DMG_ENABLE_FILESYSTEM=0
|
||||
include ../examples.mk
|
||||
@@ -7,7 +7,6 @@
|
||||
|
||||
static sig_atomic_t s_signal_received = 0;
|
||||
static const char *s_http_port = "8000";
|
||||
static struct mg_serve_http_opts s_http_server_opts;
|
||||
|
||||
static void signal_handler(int sig_num) {
|
||||
signal(sig_num, signal_handler); // Reinstantiate signal handler
|
||||
@@ -69,7 +68,6 @@ int main(void) {
|
||||
mg_mgr_init(&mgr, NULL);
|
||||
|
||||
nc = mg_bind(&mgr, s_http_port, ev_handler);
|
||||
s_http_server_opts.document_root = ".";
|
||||
mg_set_protocol_http_websocket(nc);
|
||||
|
||||
printf("Started on port %s\n", s_http_port);
|
||||
|
||||
Reference in new issue
Block a user