diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-07-12 16:45:27 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-07-12 16:45:27 +0000 |
commit | d705291ceef2d2d02a74c6ca33fd07f72171114f (patch) | |
tree | 7487c0f44e1d7631d8f38b027ac6d2e996cb7745 /nuttx/netutils/thttpd/thttpd.c | |
parent | 2c0b1a2f8d2294ff3486ba04752cd1bd4b3e279c (diff) | |
download | px4-nuttx-d705291ceef2d2d02a74c6ca33fd07f72171114f.tar.gz px4-nuttx-d705291ceef2d2d02a74c6ca33fd07f72171114f.tar.bz2 px4-nuttx-d705291ceef2d2d02a74c6ca33fd07f72171114f.zip |
Add libhttpd.c
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1978 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/netutils/thttpd/thttpd.c')
-rw-r--r-- | nuttx/netutils/thttpd/thttpd.c | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/nuttx/netutils/thttpd/thttpd.c b/nuttx/netutils/thttpd/thttpd.c index 2d45b611a..e8b3ef9f7 100644 --- a/nuttx/netutils/thttpd/thttpd.c +++ b/nuttx/netutils/thttpd/thttpd.c @@ -54,36 +54,17 @@ #include <nuttx/compiler.h> -#include "version.h" +#include "config.h" #include "fdwatch.h" #include "libhttpd.h" #include "timers.h" +#ifdef CONFIG_THTTPD + /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ -#ifndef CONFIG_THTTPD_IPADDR -# warning "CONFIG_THTTPD_IPADDR not defined" -# define CONFIG_THTTPD_IPADDR (10<<24|0<<16|0<<8|2) -#endif - -#ifndef CONFIG_THTTPD_LINGER_MSEC -# define CONFIG_THTTPD_LINGER_MSEC 5000 -#endif - -#ifndef CONFIG_THTTPD_OCCASIONAL_MSEC -# define CONFIG_THTTPD_OCCASIONAL_MSEC 2000 -#endif - -#ifndef CONFIG_THTTPD_IDLE_READ_LIMIT_SEC -# define CONFIG_THTTPD_IDLE_READ_LIMIT_SEC 5 -#endif - -#ifndef CONFIG_THTTPD_IDLE_SEND_LIMIT_SEC -# define CONFIG_THTTPD_IDLE_SEND_LIMIT_SEC 5 -#endif - #ifndef MAXPATHLEN # define MAXPATHLEN 64 #endif @@ -944,4 +925,5 @@ int thttpd_main(int argc, char **argv) exit(0); } +#endif /* CONFIG_THTTPD */ |