From b912982bdc17ab5b2a5517751692fd589a565a33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20K=C3=BCmmel?= Date: Mon, 13 Nov 2006 23:22:31 +0000 Subject: [PATCH] chmod fixes for msvc * development/cmake/config.h.cmake: there is no mode_t * src/support/copy.C chmod is declared in io.h git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15913 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/cmake/config.h.cmake | 3 +++ src/support/copy.C | 3 +++ 2 files changed, 6 insertions(+) diff --git a/development/cmake/config.h.cmake b/development/cmake/config.h.cmake index c82092c9a4..24d5347cf7 100644 --- a/development/cmake/config.h.cmake +++ b/development/cmake/config.h.cmake @@ -171,6 +171,9 @@ #ifdef _MSC_VER #pragma warning( disable : 4800 ) //: forcing value to bool 'true' or 'false' (performance warning) +#ifdef HAVE_CHMOD +typedef int mode_t; +#endif #endif #ifdef LYX_ENABLE_PCH diff --git a/src/support/copy.C b/src/support/copy.C index 869a8db3c4..f54a3c09d9 100644 --- a/src/support/copy.C +++ b/src/support/copy.C @@ -21,6 +21,9 @@ # include #endif +#if defined(HAVE_CHMOD) && defined(_MSC_VER) +#include +#endif namespace lyx {