#include "support/lyxlib.h"
#include "support/filename.h"
-
-namespace lyx {
-namespace support {
-
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
+namespace lyx {
+namespace support {
+
int unlink(FileName const & pathname)
{
return ::unlink(pathname.toFilesystemEncoding().c_str());