aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 6c149cfb6..3127f0937 100644
--- a/src/main.c
+++ b/src/main.c
@@ -238,6 +238,10 @@ typedef enum {
# define struct_stat struct _stat
#endif
+#ifndef struct_stat
+# define struct_stat struct stat
+#endif
+
#ifdef CURL_DOES_CONVERSIONS
#ifdef HAVE_ICONV
iconv_t inbound_cd = (iconv_t)-1;