]> git.lyx.org Git - lyx.git/blobdiff - src/support/unlink.C
hopefully fix tex2lyx linking.
[lyx.git] / src / support / unlink.C
index e3ca60afe100f903f5c3561378b10d6e9ee9f430..ebdd20eabfb28e88a84b6d797702d7c7f0030e70 100644 (file)
 
 #include <config.h>
 
-#include <unistd.h>
+#include "support/lyxlib.h"
 
-#include "lyxlib.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