Changed the #if used to turn on UNIX domain sockets to match what
is used in sckaddr.h so wxMAC will compile again. If wxMAC/darwin can actually use UNIX domain sockets then this change should probably go the other way... git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -89,7 +89,7 @@ static wxSockAddress *
|
|||||||
GetAddressFromName(const wxString& serverName, const wxString& host = _T(""))
|
GetAddressFromName(const wxString& serverName, const wxString& host = _T(""))
|
||||||
{
|
{
|
||||||
// we always use INET sockets under non-Unix systems
|
// we always use INET sockets under non-Unix systems
|
||||||
#ifdef __UNIX_LIKE__
|
#if defined(__UNIX__) && !defined(__WXMAC__)
|
||||||
// under Unix, if the server name looks like a path, create a AF_UNIX
|
// under Unix, if the server name looks like a path, create a AF_UNIX
|
||||||
// socket instead of AF_INET one
|
// socket instead of AF_INET one
|
||||||
if ( serverName.Find(_T('/')) != wxNOT_FOUND )
|
if ( serverName.Find(_T('/')) != wxNOT_FOUND )
|
||||||
|
Reference in New Issue
Block a user