X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fcc6dddd1f1da49f94767ff148eaa3f1d3ca9367..4ce81a75efb34de9f01fe3c7b9ffecb03293b1c3:/src/common/sckaddr.cpp diff --git a/src/common/sckaddr.cpp b/src/common/sckaddr.cpp index 90117044f7..b61afc01a4 100644 --- a/src/common/sckaddr.cpp +++ b/src/common/sckaddr.cpp @@ -26,11 +26,17 @@ #include #include #include +#ifndef __MWERKS__ #include +#endif #include "wx/defs.h" #include "wx/object.h" +#if defined(__WXMAC__) +#include "/wx/mac/macsock.h" +#endif + #if defined(__WINDOWS__) #include #endif // __WINDOWS__ @@ -41,6 +47,10 @@ #include #include #else +#if defined(__FreeBSD__) || defined (__NetBSD__) +#include +#endif +#include #include #include #include @@ -115,7 +125,11 @@ bool wxIPV4address::Hostname(const wxString& name) return FALSE; } } else { +#ifdef __WXMAC__ + long len_addr = inet_addr(name.GetData()).s_addr ; +#else long len_addr = inet_addr(name.GetData()); +#endif if (len_addr == -1) return FALSE; m_addr->sin_addr.s_addr = len_addr;