]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/sckipc.cpp
Compile fix for prop.
[wxWidgets.git] / src / common / sckipc.cpp
index 372c1d627e2ee2572f6a4af3e1c752aca6e26ddf..634fbd6ee21f5fece35a2d08a4dd6362c9002e90 100644 (file)
@@ -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) )
+        if ( remove(m_filename.fn_str()) != 0 )
         {
             wxLogDebug(_T("Stale AF_UNIX file '%s' left."), m_filename.c_str());
         }