From 6bfe51205ea172063621ef7ba3634642b1f2e99e Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 6 Dec 2007 15:16:53 +0000 Subject: 2007-12-06 Joel Sherrill * Makefile, init.c: Make sure POSIX threading is enabled if using GoAhead. --- http/ChangeLog | 5 +++++ http/Makefile | 1 + http/init.c | 6 ++++++ 3 files changed, 12 insertions(+) diff --git a/http/ChangeLog b/http/ChangeLog index bc8a46a..e808706 100644 --- a/http/ChangeLog +++ b/http/ChangeLog @@ -1,3 +1,8 @@ +2007-12-06 Joel Sherrill + + * Makefile, init.c: Make sure POSIX threading is enabled if using + GoAhead. + 2007-11-09 Joel Sherrill * Makefile: bin2c now 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; -- cgit v1.2.3