aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/formdata.c2
1 files changed, 1 insertions, 1 deletions
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 <stdarg.h>
#include <time.h>
#include <sys/stat.h>
-#ifdef HAVE_LIBGEN_H
+#if defined(HAVE_LIBGEN_H) && defined(HAVE_BASENAME)
#include <libgen.h>
#endif
#include "formdata.h"