]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/sckaddr.cpp
1. NOT_FOUND -> wxNOT_FOUND
[wxWidgets.git] / src / common / sckaddr.cpp
index 90117044f747205326371810e8bead0612ade68a..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__
 #include <socket.h>
 #include <in.h>
 #else
+#if defined(__FreeBSD__) || defined (__NetBSD__)
+#include <sys/types.h>
+#endif
+#include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
@@ -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;