[PATCH 03/25] mghttpd: Add configuration to source file

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Sep 14 13:18:31 UTC 2018


Update #3375.
---
 cpukit/mghttpd/Makefile.am | 2 --
 cpukit/mghttpd/mongoose.c  | 4 ++++
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/cpukit/mghttpd/Makefile.am b/cpukit/mghttpd/Makefile.am
index c3e605c679..5058f8b85e 100644
--- a/cpukit/mghttpd/Makefile.am
+++ b/cpukit/mghttpd/Makefile.am
@@ -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
diff --git a/cpukit/mghttpd/mongoose.c b/cpukit/mghttpd/mongoose.c
index f7d65a9948..52bc4d3c1a 100644
--- a/cpukit/mghttpd/mongoose.c
+++ b/cpukit/mghttpd/mongoose.c
@@ -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)
-- 
2.13.7




More information about the devel mailing list