]> sjero.net Git - wget/blobdiff - windows/config-compiler.h
[svn] Include <sys/stat.h> before redefining stat.
[wget] / windows / config-compiler.h
index 806f9a437b27e19f660106a279f0551243484b35..7ad1d12a2fb6db7135a944e79565a41a1015dce7 100644 (file)
@@ -40,6 +40,11 @@ so, delete this exception statement from your version.  */
 
    Things that apply to *all* compilers, as well as things that are
    specific to Wget, belong in src/mswindows.h.  */
+
+/* For all compilers: must include <sys/stat.h> before redefining
+   stat.  */
+
+#include <sys/stat.h>
 \f
 /* -------------------- */
 /* MinGW (GCC) section. */
@@ -73,8 +78,7 @@ so, delete this exception statement from your version.  */
    from all import libraries. */
 #ifdef ENABLE_IPV6
 # undef gai_strerror
-#  define gai_strerror windows_strerror
-# endif
+# define gai_strerror windows_strerror
 #endif
 \f
 /* -------------------- */