[rtems commit] mghttpd: Add configuration to source file

Sebastian Huber sebh at rtems.org
Thu Oct 4 08:50:31 UTC 2018


Module:    rtems
Branch:    master
Commit:    2e77151e93c4083177a398581d4365fa284fa169
Changeset: http://git.rtems.org/rtems/commit/?id=2e77151e93c4083177a398581d4365fa284fa169

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Sep 10 06:31:53 2018 +0200

mghttpd: Add configuration to source file

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 c3e605c..5058f8b 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 f7d65a9..52bc4d3 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)




More information about the vc mailing list