X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fmswindows.h;h=34352877074103b3707011f199435446bbd168ff;hp=612dd94998c753409f6d514fa0491f8b2e90759a;hb=d513a2d946270a2b1be8abbfe003e58397c2912d;hpb=2c9ffa506ae934f40a3bb13897a995078f4be7af diff --git a/src/mswindows.h b/src/mswindows.h index 612dd949..34352877 100644 --- a/src/mswindows.h +++ b/src/mswindows.h @@ -98,6 +98,14 @@ __int64 str_to_int64 (const char *, char **, int); is equivalent to stat anyway. */ #define lstat stat +/* Define LFS aliases for stat and fstat. */ +#ifdef stat_alias +# define stat(f, b) stat_alias (f, b) +#endif +#ifdef fstat_alias +# define fstat(f, b) fstat_alias (f, b) +#endif + #define PATH_SEPARATOR '\\' /* Win32 doesn't support the MODE argument to mkdir. */ @@ -109,6 +117,11 @@ __int64 str_to_int64 (const char *, char **, int); const char *inet_ntop (int, const void *, char *, socklen_t); #endif +#ifdef NEED_GAI_STRERROR +# undef gai_strerror +# define gai_strerror windows_strerror +#endif + #ifndef INHIBIT_WRAP /* Winsock functions don't set errno, so we provide wrappers that do. */