]> git.lyx.org Git - lyx.git/blobdiff - src/support/rename.C
fix typo that put too many include paths for most people
[lyx.git] / src / support / rename.C
index f6a33670628bec1d76888f2f2a45957b49cbba8c..7c079a2100eb2bbcd2d683491e382f8cc7265aa4 100644 (file)
@@ -6,6 +6,9 @@
 
 bool lyx::rename(string const & from, string const & to)
 {
+#ifdef __EMX__
+       lyx::unlink(to.c_str());
+#endif
        if (::rename(from.c_str(), to.c_str()) == -1)
                if (lyx::copy(from, to)) {
                        lyx::unlink(from);