mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 15:48:49 -05:00
Added some checks for the addrinfo structure.
This commit is contained in:
parent
bb0aba34fa
commit
336154e729
@ -1,5 +1,9 @@
|
|||||||
Changelog for the c-ares project
|
Changelog for the c-ares project
|
||||||
|
|
||||||
|
* June 19
|
||||||
|
|
||||||
|
- Added some checks for the addrinfo structure.
|
||||||
|
|
||||||
* June 2
|
* June 2
|
||||||
|
|
||||||
- William Ahern:
|
- William Ahern:
|
||||||
@ -20,7 +24,6 @@
|
|||||||
value. If q is not greater than *s then it's equal and *s is always
|
value. If q is not greater than *s then it's equal and *s is always
|
||||||
allocated with at least one byte.
|
allocated with at least one byte.
|
||||||
|
|
||||||
|
|
||||||
* May 16
|
* May 16
|
||||||
|
|
||||||
- Added ares_getnameinfo which mimics the getnameinfo API (another feature
|
- Added ares_getnameinfo which mimics the getnameinfo API (another feature
|
||||||
|
@ -39,6 +39,20 @@ struct sockaddr_in6
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef HAVE_STRUCT_ADDRINFO
|
||||||
|
struct addrinfo
|
||||||
|
{
|
||||||
|
int ai_flags;
|
||||||
|
int ai_family;
|
||||||
|
int ai_socktype;
|
||||||
|
int ai_protocol;
|
||||||
|
size_t ai_addrlen;
|
||||||
|
char *ai_cannonname;
|
||||||
|
struct sockaddr *ai_addr;
|
||||||
|
struct addrinfo *ai_next;
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef NS_IN6ADDRSZ
|
#ifndef NS_IN6ADDRSZ
|
||||||
#if SIZEOF_STRUCT_IN6_ADDR == 0
|
#if SIZEOF_STRUCT_IN6_ADDR == 0
|
||||||
/* We cannot have it set to zero, so we pick a fixed value here */
|
/* We cannot have it set to zero, so we pick a fixed value here */
|
||||||
|
@ -193,6 +193,23 @@ CARES_CHECK_STRUCT_MEMBER(
|
|||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnl check for the addrinfo structure
|
||||||
|
CARES_CHECK_STRUCT(
|
||||||
|
[
|
||||||
|
#ifdef HAVE_SYS_TYPES_H
|
||||||
|
#include <sys/types.h>
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_WINSOCK_H
|
||||||
|
#include <winsock.h>
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_NETINET_IN_H
|
||||||
|
#include <netinet/in.h>
|
||||||
|
#endif
|
||||||
|
], [addrinfo],
|
||||||
|
AC_DEFINE_UNQUOTED(HAVE_STRUCT_ADDRINFO,1,
|
||||||
|
[Define to 1 if you have struct addrinfo.])
|
||||||
|
)
|
||||||
|
|
||||||
dnl check for inet_pton
|
dnl check for inet_pton
|
||||||
AC_CHECK_FUNCS(inet_pton)
|
AC_CHECK_FUNCS(inet_pton)
|
||||||
dnl Some systems have it, but not IPv6
|
dnl Some systems have it, but not IPv6
|
||||||
|
Loading…
Reference in New Issue
Block a user