Commit c754f632 authored by Christophe Massiot's avatar Christophe Massiot

* src/misc/net.c: Fix for Cygwin which doesn't have inet_aton().

parent c2510014
......@@ -1180,6 +1180,7 @@ static int SocksHandshakeTCP( vlc_object_t *p_obj,
int __net_CheckIP( vlc_object_t *p_this, char *psz_ip, char **ppsz_hosts,
int i_hosts )
{
#ifdef HAVE_ARPA_INET_H
struct in_addr ip;
int i;
......@@ -1225,5 +1226,10 @@ int __net_CheckIP( vlc_object_t *p_this, char *psz_ip, char **ppsz_hosts,
}
return VLC_FALSE;
#else
msg_Err( p_this, "hosts checking is not supported on this OS" );
return VLC_FALSE;
#endif
}
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