浏览代码

Merge pull request #254 from oldmancoyote/master

Typo in example
bel2125 9 年之前
父节点
当前提交
38d130a2cc
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      examples/upload/upload.c
  2. 1 1
      examples/ws_server/Makefile

+ 1 - 1
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);

+ 1 - 1
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)