aboutsummaryrefslogtreecommitdiff
path: root/lib/formdata.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-10-18 03:37:39 +0000
committerYang Tse <yangsita@gmail.com>2009-10-18 03:37:39 +0000
commit6d4e6cc8137ff2ebdbaf055e39ce1263ad634191 (patch)
tree8fa6c09f7defeaaf54e2beffed0210a67b7a1db6 /lib/formdata.c
parent86cec97b2214cefdbc7cfa1c434c5823b28a47c3 (diff)
Check for basename() is now done the same as other function checks
Diffstat (limited to 'lib/formdata.c')
-rw-r--r--lib/formdata.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/formdata.c b/lib/formdata.c
index 9b458c0e2..f2d556ff2 100644
--- a/lib/formdata.c
+++ b/lib/formdata.c
@@ -135,9 +135,9 @@ Content-Disposition: form-data; name="FILECONTENT"
#ifndef CURL_DISABLE_HTTP
-#if defined(HAVE_BASENAME) && defined(NEED_BASENAME_PROTO)
-/* This system has a basename() but no prototype for it! */
-char *basename(char *path);
+#ifndef HAVE_BASENAME
+static char *Curl_basename(char *path);
+#define basename(x) Curl_basename((x))
#endif
static size_t readfromfile(struct Form *form, char *buffer, size_t size);
@@ -1067,7 +1067,7 @@ void curl_formfree(struct curl_httppost *form)
required to be reentrant is not required to be thread-safe.
*/
-static char *basename(char *path)
+static char *Curl_basename(char *path)
{
/* Ignore all the details above for now and make a quick and simple
implementaion here */