diff -r 32ef969adeed -r a18aaf460648 sources/network/ipaddress.cpp --- a/sources/network/ipaddress.cpp Fri May 15 21:43:21 2015 +0300 +++ b/sources/network/ipaddress.cpp Tue May 26 11:41:58 2015 +0300 @@ -28,13 +28,26 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "ipaddress.h" + +#ifndef _WIN32 +# include +# include +#else +# include +# include +#endif + #include #include #include #include -#include -#include -#include "ipaddress.h" + +#ifdef _WIN32 +using AddrInfo = ADDRINFOA; +#else +using AddrInfo = struct addrinfo; +#endif // ----------------------------------------------------------------------------- // @@ -168,8 +181,8 @@ STATIC METHOD IPAddress::resolve (String node) -> IPAddress { - addrinfo hints; - addrinfo* lookup; + AddrInfo hints; + AddrInfo* lookup; memset (&hints, 0, sizeof hints); hints.ai_family = AF_INET;