Fix compilation with MG_DISABLE_HTTP_WEBSOCKET

Make restful_server and netcat examples compilation tests:
 - netcat doesn't use HTTP, compile it with MG_DISABLE_HTTP
 - restful_server doesn't use websocket, compile it with
   MG_DISABLE_HTTP_WEBSOCKET

h/t @labourcier, cesanta/mongoose#665

PUBLISHED_FROM=4494ac3cbd81e8314beb557ab301b4b44c4afb89
This commit is contained in:
rojer authored and Marko Mikulicic committed 2016-06-07 16:43:24 +02:00
1 parent dfde5785a6
commit 04a38b446f
4 files changed
+10 -2

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
PROG = nc
MODULE_CFLAGS=-DMG_ENABLE_THREADS
MODULE_CFLAGS=-DMG_ENABLE_THREADS -DMG_DISABLE_HTTP
SSL_LIB=openssl
include ../examples.mk
+1
View File
@@ -1,2 +1,3 @@
PROG = restful_server
MODULE_CFLAGS=-DMG_ENABLE_THREADS -DMG_DISABLE_HTTP_WEBSOCKET
include ../examples.mk