]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/http.cpp
fix for BSD compilation
[wxWidgets.git] / src / common / http.cpp
index d147823f1572fe0974f3f7b572f045886ac37f8d..52f6e362c748fde47da55555d1aad5eee0f14425 100644 (file)
@@ -308,8 +308,16 @@ wxInputStream *wxHTTP::GetInputStream(const wxString& path)
     return NULL;
 
   // We set m_connected back to FALSE so wxSocketBase will know what to do.
+#ifdef __WXMAC__
+        wxSocketClient::Connect(*m_addr , FALSE );
+        wxSocketClient::WaitOnConnect(10);
+
+    if (!wxSocketClient::IsConnected())
+        return NULL;
+#else
   if (!wxProtocol::Connect(*m_addr))
     return NULL;
+#endif
 
   if (!BuildRequest(path, wxHTTP_GET))
     return NULL;