summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-06 15:17:01 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-06 15:17:01 +0000
commitcb90d006e88fa30f74287012e7baefa8a4cdc8e2 (patch)
treed2811b5facd1752bf9785d8e4badbbc02a814e39
parent2007-11-25 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadnetwork-demos-cb90d006e88fa30f74287012e7baefa8a4cdc8e2.tar.bz2
2007-12-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile, init.c: Make sure POSIX threading is enabled if using GoAhead.
-rw-r--r--http/ChangeLog5
-rw-r--r--http/Makefile1
-rw-r--r--http/init.c6
3 files changed, 12 insertions, 0 deletions
diff --git a/http/ChangeLog b/http/ChangeLog
index 70df48b..d6d7844 100644
--- a/http/ChangeLog
+++ b/http/ChangeLog
@@ -1,3 +1,8 @@
+2007-12-06 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * Makefile, init.c: Make sure POSIX threading is enabled if using
+ GoAhead.
+
2007-11-25 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile: bin2c was renamed rtems-bin2c.
diff --git a/http/Makefile b/http/Makefile
index ddbcb86..737bf74 100644
--- a/http/Makefile
+++ b/http/Makefile
@@ -40,6 +40,7 @@ CFLAGS_DEBUG_V += -v -qrtems_debug
LD_PATHS +=
+## FYI GoAhead requires POSIX to be enabled
USE_GOHEAD=no
USE_SIMPLE=yes
USE_FTPD=yes
diff --git a/http/init.c b/http/init.c
index af71c9a..dc56e41 100644
--- a/http/init.c
+++ b/http/init.c
@@ -70,6 +70,12 @@
boolean FTPD_enabled = FALSE;
#endif
+#if defined(USE_GOAHEAD_HTTPD) && !defined(RTEMS_POSIX_API)
+ #warning "GoAhead server requires POSIX API - switching to SHTTPD"
+ #undef USE_GOAHEAD_HTTPD
+ #undef USE_SIMPLE_HTTPD
+#endif
+
#if defined(USE_GOAHEAD_HTTPD)
boolean GoAhead_HTTPD_enabled = TRUE;