diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-09-13 20:14:51 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-09-13 20:14:51 +0000 |
commit | 9120a27d14a927091da009248f51d146f93d040a (patch) | |
tree | ea5c6546431e2be344a0fc271d65878229fa16ef /nuttx/netutils/thttpd/thttpd_alloc.h | |
parent | 3e2be1aaa3fcc433ee79400409220135a86a716e (diff) | |
download | px4-nuttx-9120a27d14a927091da009248f51d146f93d040a.tar.gz px4-nuttx-9120a27d14a927091da009248f51d146f93d040a.tar.bz2 px4-nuttx-9120a27d14a927091da009248f51d146f93d040a.zip |
CGI tried to execute using relative path
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2047 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/netutils/thttpd/thttpd_alloc.h')
-rwxr-xr-x | nuttx/netutils/thttpd/thttpd_alloc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/netutils/thttpd/thttpd_alloc.h b/nuttx/netutils/thttpd/thttpd_alloc.h index c20834965..1f24bc2e9 100755 --- a/nuttx/netutils/thttpd/thttpd_alloc.h +++ b/nuttx/netutils/thttpd/thttpd_alloc.h @@ -41,6 +41,8 @@ ****************************************************************************/ #include <nuttx/config.h> +#include <stdlib.h> +#include <string.h> #include "config.h" #ifdef CONFIG_THTTPD @@ -55,10 +57,12 @@ extern FAR void *httpd_malloc(size_t nbytes); extern FAR void *httpd_realloc(FAR void *oldptr, size_t oldsize, size_t newsize); extern void httpd_free(FAR void *ptr); +extern FAR char *httpd_strdup(const char *str); #else # define httpd_malloc(n) malloc(n) # define httpd_realloc(p,o,n) realloc(p,n) # define httpd_free(p) free(p) +# define httpd_strdup(s) strdup(s) #endif /* Helpers to support allocations in multiples of a type size */ |