From: Micah Cowan Date: Fri, 24 Apr 2009 17:00:48 +0000 (-0700) Subject: stdint.h adjustments for Interix, thanks Markus Duft . X-Git-Tag: v1.13~360 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=faa39086104b237ce52d5b9d2b5e48fe25c66728 stdint.h adjustments for Interix, thanks Markus Duft . --- diff --git a/src/ChangeLog b/src/ChangeLog index 28cb6640..5039f49e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,12 @@ +2009-04-24 Micah Cowan + + * hash.c: Change stdint.h inclusion to use HAVE_STDINT_H, not C99 + check. + + * connect.c: stdint.h inclusion added. + + Thanks to Markus Duft for a similar patch. + 2009-04-20 Micah Cowan * Makefile.am (version.c): Fix unportable use of "echo -n". diff --git a/src/connect.c b/src/connect.c index 1e8f07e5..f46f11c4 100644 --- a/src/connect.c +++ b/src/connect.c @@ -59,6 +59,11 @@ as that of the covered work. */ #include "connect.h" #include "hash.h" +/* Apparently needed for Interix: */ +#ifdef HAVE_STDINT_H +# include +#endif + /* Define sockaddr_storage where unavailable (presumably on IPv4-only hosts). */ diff --git a/src/hash.c b/src/hash.c index 1e19fd63..80922d0f 100644 --- a/src/hash.c +++ b/src/hash.c @@ -55,8 +55,8 @@ as that of the covered work. */ # endif # include # define c_tolower(x) tolower ((unsigned char) (x)) -# if __STDC_VERSION__ >= 199901L -# include /* for uintptr_t */ +# ifdef HAVE_STDINT_H +# include # else typedef unsigned long uintptr_t; # endif