]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/sckaddr.cpp
1. NOT_FOUND -> wxNOT_FOUND
[wxWidgets.git] / src / common / sckaddr.cpp
index db66326bb2fdea5e63f91e34675cc283c3cebec5..b61afc01a44aca9141d48f6958b4ccea8e51a892 100644 (file)
 #include <stdio.h>
 #include <stdlib.h>
 #include <ctype.h>
+#ifndef __MWERKS__
 #include <memory.h>
+#endif
 
 #include "wx/defs.h"
 #include "wx/object.h"
 
+#if defined(__WXMAC__)
+#include "/wx/mac/macsock.h"
+#endif
+
 #if defined(__WINDOWS__)
 #include <winsock.h>
 #endif // __WINDOWS__
@@ -119,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;