mirror of
https://github.com/curl/curl.git
synced 2026-08-25 00:33:31 +03:00
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
This commit is contained in:
parent
fe46572f2b
commit
7663775971
2 changed files with 15 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue