#include <config.h>
#include "support/socktools.h"
+#include "support/filename.h"
-#if !defined (HAVE_SOCKET)
+#if !defined (HAVE_FCNTL)
// We provide stubs because we don't (yet?) support the native OS API.
namespace lyx {
} // namespace support
} // namespace lyx
-#else // defined (HAVE_SOCKET)
+#else // defined (HAVE_FCNTL)
#include "support/lyxlib.h"
lyxerr << "lyx: Could not bind address '" << name
<< "' to socket descriptor: " << strerror(errno) << endl;
::close(fd);
- lyx::support::unlink(name);
+ unlink(FileName(name));
return -1;
}
lyxerr << "lyx: Could not put socket in 'listen' state: "
<< strerror(errno) << endl;
::close(fd);
- lyx::support::unlink(name);
+ unlink(FileName(name));
return -1;
}
} // namespace support
} // namespace lyx
-#endif // defined (HAVE_SOCKET)
+#endif // defined (HAVE_FCNTL)