X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ed2e973e9f0701e3f86d943da83b0d1d078b6e6f..9572bf1d442006beba3528dc00c3fc05eb523c24:/src/common/sckaddr.cpp diff --git a/src/common/sckaddr.cpp b/src/common/sckaddr.cpp index 5f2797cf5c..67ca3fbcdf 100644 --- a/src/common/sckaddr.cpp +++ b/src/common/sckaddr.cpp @@ -49,7 +49,7 @@ #include -#ifdef __UNIX__ +#if defined(__UNIX__) && !defined(__CYGWIN__) #include #include #endif // __UNIX__ @@ -82,8 +82,12 @@ IMPLEMENT_DYNAMIC_CLASS(wxUNIXaddress, wxSockAddress) #ifdef __WXMSW__ #define HAVE_INET_ADDR + #ifndef HAVE_GETHOSTBYNAME #define HAVE_GETHOSTBYNAME + #endif + #ifndef HAVE_GETSERVBYNAME #define HAVE_GETSERVBYNAME + #endif // under MSW getxxxbyname() functions are MT-safe (but not reentrant) so // we don't need to serialize calls to them @@ -874,7 +878,7 @@ wxString wxIPV4address::IPAddress() const return wxString::Format ( - "%lu.%lu.%lu.%lu", + "%u.%u.%u.%u", (addr >> 24) & 0xff, (addr >> 16) & 0xff, (addr >> 8) & 0xff,