From d511e59dc4a7af8363a9521c6ea17d50f6df8ddb Mon Sep 17 00:00:00 2001 From: Christopher Galas Date: Thu, 28 Jan 2016 13:45:23 -0800 Subject: [PATCH 1/3] Typo --- examples/upload/upload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/upload/upload.c b/examples/upload/upload.c index 29428846..a2bb9b6e 100644 --- a/examples/upload/upload.c +++ b/examples/upload/upload.c @@ -91,7 +91,7 @@ int main(void) /* Display a welcome message */ printf("File upload demo.\n"); - printf("Open http://localhost:%s/ im your browser.\n\n", PORT); + printf("Open http://localhost:%s/ in your browser.\n\n", PORT); /* Start the server */ ctx = mg_start(&callbacks, NULL, options); From 98570c0bd3244e51867067391fb69b964c6da959 Mon Sep 17 00:00:00 2001 From: Christopher Galas Date: Thu, 28 Jan 2016 14:57:02 -0800 Subject: [PATCH 2/3] Compile fix: Adding in -DMG_LEGACY_INTERFACE=1 The example wasn't compiling under Linux Ubuntu 14.04, since this example replied upon the legacy interface. The following compile flag was needed to build the example: -DMG_LEGACY_INTERFACE=1 --- examples/ws_server/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ws_server/Makefile b/examples/ws_server/Makefile index 399c918d..c8775ef8 100644 --- a/examples/ws_server/Makefile +++ b/examples/ws_server/Makefile @@ -18,7 +18,7 @@ LIBS = -lpthread include $(TOP)/resources/Makefile.in-os ifeq ($(TARGET_OS),LINUX) - LIBS += -ldl + LIBS += -ldl -DMG_LEGACY_INTERFACE=1 endif all: $(PROG) From 36d138a820cbfbfd7be2eb662174e918f30098f5 Mon Sep 17 00:00:00 2001 From: Christopher Galas Date: Thu, 28 Jan 2016 14:57:23 -0800 Subject: [PATCH 3/3] Update Makefile --- examples/ws_server/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ws_server/Makefile b/examples/ws_server/Makefile index c8775ef8..60d9dbed 100644 --- a/examples/ws_server/Makefile +++ b/examples/ws_server/Makefile @@ -18,7 +18,7 @@ LIBS = -lpthread include $(TOP)/resources/Makefile.in-os ifeq ($(TARGET_OS),LINUX) - LIBS += -ldl -DMG_LEGACY_INTERFACE=1 + LIBS += -ldl -DMG_LEGACY_INTERFACE=1 endif all: $(PROG)