diff --git a/src/support/unlink.C b/src/support/unlink.C index 5f523498a4..a8ebc138d8 100644 --- a/src/support/unlink.C +++ b/src/support/unlink.C @@ -13,14 +13,13 @@ #include "support/lyxlib.h" #include "support/filename.h" - -namespace lyx { -namespace support { - #ifdef HAVE_UNISTD_H # include #endif +namespace lyx { +namespace support { + int unlink(FileName const & pathname) { return ::unlink(pathname.toFilesystemEncoding().c_str());