From 121197bc8795480c7fea0619cc9f6ce38eb14913 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 5 Oct 2004 06:55:09 +0000 Subject: Only include libgen.h if we have a basename as well. Mainly meant to deal with the IRIX case which seems to requrie a "-lgen" lib to find the basename function and thus without the gen lib, it finds the header but not the function and our replacement function has a prototype that doesn't match the IRIX one. A different approach would be to make configure detect and use -lgen for the systems that require it. --- lib/formdata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/formdata.c b/lib/formdata.c index 91ad34c0a..5297e68de 100644 --- a/lib/formdata.c +++ b/lib/formdata.c @@ -113,7 +113,7 @@ Content-Disposition: form-data; name="FILECONTENT" #include #include #include -#ifdef HAVE_LIBGEN_H +#if defined(HAVE_LIBGEN_H) && defined(HAVE_BASENAME) #include #endif #include "formdata.h" -- cgit v1.2.3