diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-09-17 18:18:44 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-09-17 18:18:44 +0000 |
commit | b468f0fc17590b77076802afd66e23cb78373943 (patch) | |
tree | 25d07d14e920d31c0b1947c9ca586f2a01fc32d8 /apps/include/netutils/httpd.h | |
parent | deb1733a09381470aef3eb62ad70a327f3380b69 (diff) | |
download | px4-nuttx-b468f0fc17590b77076802afd66e23cb78373943.tar.gz px4-nuttx-b468f0fc17590b77076802afd66e23cb78373943.tar.bz2 px4-nuttx-b468f0fc17590b77076802afd66e23cb78373943.zip |
Resync new repository with old repo r5166
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5153 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/include/netutils/httpd.h')
-rw-r--r-- | apps/include/netutils/httpd.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/include/netutils/httpd.h b/apps/include/netutils/httpd.h index bcecca73b..8ba9e2f7b 100644 --- a/apps/include/netutils/httpd.h +++ b/apps/include/netutils/httpd.h @@ -84,9 +84,13 @@ extern "C" { #define HTTPD_IOBUFFER_SIZE (3*UIP_TCP_MSS) -/* this is the maximum size of a file path */ +/* This is the maximum size of a file path */ +#if defined(CONFIG_NETUTILS_HTTPD_MMAP) || defined(CONFIG_NETUTILS_HTTPD_SENDFILE) +#define HTTPD_MAX_FILENAME PATH_MAX +#else #define HTTPD_MAX_FILENAME 20 +#endif /**************************************************************************** * Public types @@ -96,7 +100,7 @@ struct httpd_fs_file { char *data; int len; -#ifdef CONFIG_NETUTILS_HTTPD_MMAP +#if defined(CONFIG_NETUTILS_HTTPD_MMAP) || defined(CONFIG_NETUTILS_HTTPD_SENDFILE) int fd; #endif }; |