diff options
author | Yang Tse <yangsita@gmail.com> | 2008-08-22 19:01:00 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-08-22 19:01:00 +0000 |
commit | fcc870021857f9233e4bb893ab01537e9c482605 (patch) | |
tree | 556aa9207100eaa2f9034cf1d24d61f2b7b528d8 | |
parent | e5b713ee636efc4a970b99104741f8edd7ab63e7 (diff) |
Reinstate struct_stat definition that got lost in previous commit.
-rw-r--r-- | lib/setup.h | 3 | ||||
-rw-r--r-- | src/main.c | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/setup.h b/lib/setup.h index 2de894cef..42d6d01af 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -298,6 +298,9 @@ # define struct_stat struct _stat #endif +#ifndef struct_stat +# define struct_stat struct stat +#endif /* Below we define some functions. They should 1. close a socket 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; |