]> git.lyx.org Git - lyx.git/blobdiff - src/support/unlink.C
chmod fixes for msvc
[lyx.git] / src / support / unlink.C
index 5ddcc9a983a085b909c4a04ff3d6ceadd511f4f2..ebdd20eabfb28e88a84b6d797702d7c7f0030e70 100644 (file)
 
 #include "support/lyxlib.h"
 
-#include <unistd.h>
+
+namespace lyx {
+
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
 
 int lyx::support::unlink(std::string const & pathname)
 {
        return ::unlink(pathname.c_str());
 }
+
+
+} // namespace lyx