diff --git a/examples/web_server/Makefile b/examples/web_server/Makefile index 888f2148..ba3a2084 100644 --- a/examples/web_server/Makefile +++ b/examples/web_server/Makefile @@ -2,7 +2,7 @@ # All rights reserved PROG = web_server -CFLAGS = -W -Wall -I../.. -pthread -g -O0 $(CFLAGS_EXTRA) +CFLAGS = -W -Wall -I../.. -pthread -g -O0 -DMONGOOSE_ENABLE_THREADS $(CFLAGS_EXTRA) SOURCES = $(PROG).c ../../mongoose.c $(PROG): $(SOURCES) diff --git a/examples/websocket_ssl_proxy/Makefile b/examples/websocket_ssl_proxy/Makefile index e69af861..968f1aca 100644 --- a/examples/websocket_ssl_proxy/Makefile +++ b/examples/websocket_ssl_proxy/Makefile @@ -2,7 +2,7 @@ # All rights reserved PROG = ws_ssl -CFLAGS = -W -Wall -I../.. -I. -pthread -g -O0 -DNS_ENABLE_SSL -DSSL_WRAPPER_USE_AS_LIBRARY $(CFLAGS_EXTRA) +CFLAGS = -W -Wall -I../.. -I. -pthread -g -O0 -DMONGOOSE_ENABLE_THREADS -DNS_ENABLE_SSL -DSSL_WRAPPER_USE_AS_LIBRARY $(CFLAGS_EXTRA) LDFLAGS = -lssl SOURCES = ws_ssl.c ../../mongoose.c ssl_wrapper.c