Commit 0dff81f4 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

wsock32: Add a fallback for inet_network.

parent 9273a671
...@@ -14338,6 +14338,7 @@ for ac_func in \ ...@@ -14338,6 +14338,7 @@ for ac_func in \
getprotobyname \ getprotobyname \
getprotobynumber \ getprotobynumber \
getservbyport \ getservbyport \
inet_addr \
inet_network \ inet_network \
inet_ntop \ inet_ntop \
inet_pton \ inet_pton \
......
...@@ -2130,6 +2130,7 @@ AC_CHECK_FUNCS(\ ...@@ -2130,6 +2130,7 @@ AC_CHECK_FUNCS(\
getprotobyname \ getprotobyname \
getprotobynumber \ getprotobynumber \
getservbyport \ getservbyport \
inet_addr \
inet_network \ inet_network \
inet_ntop \ inet_ntop \
inet_pton \ inet_pton \
......
...@@ -51,6 +51,8 @@ UINT WINAPI WSOCK32_inet_network(const char *cp) ...@@ -51,6 +51,8 @@ UINT WINAPI WSOCK32_inet_network(const char *cp)
{ {
#ifdef HAVE_INET_NETWORK #ifdef HAVE_INET_NETWORK
return inet_network(cp); return inet_network(cp);
#elif defined(HAVE_INET_ADDR)
return ntohl( inet_addr( cp ) );
#else #else
return 0; return 0;
#endif #endif
......
...@@ -264,6 +264,9 @@ ...@@ -264,6 +264,9 @@
/* Define to 1 if you have the `if_nameindex' function. */ /* Define to 1 if you have the `if_nameindex' function. */
#undef HAVE_IF_NAMEINDEX #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. */ /* Define to 1 if you have the <inet/mib2.h> header file. */
#undef HAVE_INET_MIB2_H #undef HAVE_INET_MIB2_H
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment