X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7e0a413dae314479f26cb986561bec735d7dac02..a69be60b0f1dac4713e6650ca3ca9fe5a53de062:/src/common/sckipc.cpp diff --git a/src/common/sckipc.cpp b/src/common/sckipc.cpp index 822f96397e..634fbd6ee2 100644 --- a/src/common/sckipc.cpp +++ b/src/common/sckipc.cpp @@ -260,7 +260,7 @@ bool wxTCPServer::Create(const wxString& serverName) { // ensure that the file doesn't exist as otherwise calling socket() would // fail - int rc = remove(serverName); + int rc = remove(serverName.fn_str()); if ( rc < 0 && errno != ENOENT ) { delete addr; @@ -321,7 +321,7 @@ wxTCPServer::~wxTCPServer() #ifdef __UNIX_LIKE__ if ( !m_filename.empty() ) { - if ( remove(m_filename) != 0 ) + if ( remove(m_filename.fn_str()) != 0 ) { wxLogDebug(_T("Stale AF_UNIX file '%s' left."), m_filename.c_str()); }