]> git.lyx.org Git - lyx.git/blobdiff - src/support/copy.C
Detect mode_t for safe use of chmod, and for scons/msvc
[lyx.git] / src / support / copy.C
index ceb2db196800006519a88b3be374f39fa484eae9..3b6d328bd7e7a491ed7be39404a5c45bc6a8a2a4 100644 (file)
@@ -33,7 +33,7 @@ using std::string;
 
 bool lyx::support::chmod(string const & file, unsigned long int mode)
 {
-#ifdef HAVE_CHMOD
+#if defined (HAVE_CHMOD) && defined (HAVE_MODE_T)
        if (::chmod(file.c_str(), mode_t(mode)) != 0)
                return false;
 #else