stdint.h adjustments for Interix, thanks Markus Duft <mduft@gentoo.org>.

This commit is contained in:
Micah Cowan 2009-04-24 10:00:48 -07:00
parent bb2cba2cc7
commit faa3908610
3 changed files with 16 additions and 2 deletions

View File

@ -1,3 +1,12 @@
2009-04-24 Micah Cowan <micah@cowan.name>
* hash.c: Change stdint.h inclusion to use HAVE_STDINT_H, not C99
check.
* connect.c: stdint.h inclusion added.
Thanks to Markus Duft <mduft@gentoo.org> for a similar patch.
2009-04-20 Micah Cowan <micah@cowan.name>
* Makefile.am (version.c): Fix unportable use of "echo -n".

View File

@ -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 <stdint.h>
#endif
/* Define sockaddr_storage where unavailable (presumably on IPv4-only
hosts). */

View File

@ -55,8 +55,8 @@ as that of the covered work. */
# endif
# include <ctype.h>
# define c_tolower(x) tolower ((unsigned char) (x))
# if __STDC_VERSION__ >= 199901L
# include <stdint.h> /* for uintptr_t */
# ifdef HAVE_STDINT_H
# include <stdint.h>
# else
typedef unsigned long uintptr_t;
# endif