]> git.lyx.org Git - lyx.git/blobdiff - src/support/copy.C
hopefully fix tex2lyx linking.
[lyx.git] / src / support / copy.C
index f54a3c09d9f4a4ad7f3b83be0b59253f6906fc1a..ceb2db196800006519a88b3be374f39fa484eae9 100644 (file)
@@ -21,9 +21,6 @@
 # include <sys/types.h>
 #endif
 
-#if defined(HAVE_CHMOD) && defined(_MSC_VER)
-#include <io.h>
-#endif
 
 namespace lyx {
 
@@ -59,7 +56,7 @@ bool lyx::support::copy(string const & from, string const & to, unsigned long in
                if (!ofs)
                        return false;
                ofs.close();
-               if (!chmod(to, mode_t(mode)))
+               if (!support::chmod(to, mode))
                        return false;
        }