]> git.lyx.org Git - lyx.git/blobdiff - src/support/socktools.C
Provide do_put methods for inserting all remaining basic type values
[lyx.git] / src / support / socktools.C
index d22a201c5b63efbae6c01ddf4d199631002e4a23..6649df6fa9c544a9197f3ff168ce8894f32471b6 100644 (file)
@@ -11,6 +11,7 @@
 #include <config.h>
 
 #include "support/socktools.h"
+#include "support/filename.h"
 
 #if !defined (HAVE_FCNTL)
 // We provide stubs because we don't (yet?) support the native OS API.
@@ -114,7 +115,7 @@ int listen(string const & name, int queue)
                lyxerr << "lyx: Could not bind address '" << name
                       << "' to socket descriptor: " << strerror(errno) << endl;
                ::close(fd);
-               lyx::support::unlink(name);
+               unlink(FileName(name));
                return -1;
        }
 
@@ -127,7 +128,7 @@ int listen(string const & name, int queue)
                lyxerr << "lyx: Could not put socket in 'listen' state: "
                       << strerror(errno) << endl;
                ::close(fd);
-               lyx::support::unlink(name);
+               unlink(FileName(name));
                return -1;
        }