mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
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.
This commit is contained in:
parent
d5dd8e0fdc
commit
121197bc87
@ -113,7 +113,7 @@ Content-Disposition: form-data; name="FILECONTENT"
|
|||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#ifdef HAVE_LIBGEN_H
|
#if defined(HAVE_LIBGEN_H) && defined(HAVE_BASENAME)
|
||||||
#include <libgen.h>
|
#include <libgen.h>
|
||||||
#endif
|
#endif
|
||||||
#include "formdata.h"
|
#include "formdata.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user