wsock32: Add a fallback for inet_network.

This commit is contained in:
Huw Davies 2013-10-15 09:55:49 +01:00 committed by Alexandre Julliard
parent 9273a6715f
commit 0dff81f495
4 changed files with 7 additions and 0 deletions

1
configure vendored
View File

@ -14338,6 +14338,7 @@ for ac_func in \
getprotobyname \
getprotobynumber \
getservbyport \
inet_addr \
inet_network \
inet_ntop \
inet_pton \

View File

@ -2130,6 +2130,7 @@ AC_CHECK_FUNCS(\
getprotobyname \
getprotobynumber \
getservbyport \
inet_addr \
inet_network \
inet_ntop \
inet_pton \

View File

@ -51,6 +51,8 @@ UINT WINAPI WSOCK32_inet_network(const char *cp)
{
#ifdef HAVE_INET_NETWORK
return inet_network(cp);
#elif defined(HAVE_INET_ADDR)
return ntohl( inet_addr( cp ) );
#else
return 0;
#endif

View File

@ -264,6 +264,9 @@
/* Define to 1 if you have the `if_nameindex' function. */
#undef HAVE_IF_NAMEINDEX
/* Define to 1 if you have the `inet_addr' function. */
#undef HAVE_INET_ADDR
/* Define to 1 if you have the <inet/mib2.h> header file. */
#undef HAVE_INET_MIB2_H