mghttpd: Add configuration to source file

Update #3375.
This commit is contained in:
Sebastian Huber
2018-09-10 06:31:53 +02:00
parent 06060da3bc
commit 2e77151e93
2 changed files with 4 additions and 2 deletions

View File

@@ -9,8 +9,6 @@ $(PROJECT_LIB)/libmghttpd.a: libmghttpd.a
TMPINSTALL_FILES = $(PROJECT_LIB)/libmghttpd.a
libmghttpd_a_CPPFLAGS = $(AM_CPPFLAGS)
# libmghttpd_a_CPPFLAGS += -DHAVE_MD5
libmghttpd_a_CPPFLAGS += -DNO_SSL -DNO_POPEN -DNO_CGI -DUSE_WEBSOCKET
libmghttpd_a_SOURCES = mongoose.c mongoose.h
endif

View File

@@ -25,6 +25,10 @@
#if defined(__rtems__)
#include <md5.h>
#define HAVE_MD5
#define NO_CGI
#define NO_POPEN
#define NO_SSL
#define USE_WEBSOCKET
#endif // __rtems__
#if defined(_WIN32)