From 76637759713e97871d10da9c265a40410bdc672e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 8 Oct 2004 08:18:08 +0000 Subject: if basename was found, check for a prototype and if none was found, provide our own in the formdata.c file to prevent warnings on systems without it --- lib/formdata.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/formdata.c') diff --git a/lib/formdata.c b/lib/formdata.c index d7c741938..171113485 100644 --- a/lib/formdata.c +++ b/lib/formdata.c @@ -126,6 +126,11 @@ Content-Disposition: form-data; name="FILECONTENT" /* The last #include file should be: */ #include "memdebug.h" +#if defined(HAVE_BASENAME) && defined(NEED_BASENAME_PROTO) +/* This system has a basename() but no prototype for it! */ +char *basename(char *path); +#endif + /* What kind of Content-Type to use on un-specified files with unrecognized extensions. */ #define HTTPPOST_CONTENTTYPE_DEFAULT "application/octet-stream" -- cgit v1.2.3