diff -r f992b027374b -r 3bd32eec3d57 sources/network/ipaddress.cpp --- a/sources/network/ipaddress.cpp Sun May 17 22:07:48 2015 +0300 +++ b/sources/network/ipaddress.cpp Wed May 27 21:15:52 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;