summaryrefslogtreecommitdiff
path: root/nuttx/netutils/thttpd/thttpd_alloc.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-09-13 20:14:51 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-09-13 20:14:51 +0000
commit9120a27d14a927091da009248f51d146f93d040a (patch)
treeea5c6546431e2be344a0fc271d65878229fa16ef /nuttx/netutils/thttpd/thttpd_alloc.h
parent3e2be1aaa3fcc433ee79400409220135a86a716e (diff)
downloadpx4-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-xnuttx/netutils/thttpd/thttpd_alloc.h4
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 */