From cae85c9f65c87bfa05376077f70cb05c26b2bc66 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 3 Jun 2010 11:18:39 -0400 Subject: Borland: No S_IWGRP is available --- Source/cmFileCommand.cxx | 2 ++ Source/cmWriteFileCommand.cxx | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx index 9bd84d8..df9863f 100644 --- a/Source/cmFileCommand.cxx +++ b/Source/cmFileCommand.cxx @@ -191,6 +191,8 @@ bool cmFileCommand::HandleWriteCommand(std::vector const& args, cmSystemTools::SetPermissions(fileName.c_str(), #if defined( _MSC_VER ) || defined( __MINGW32__ ) mode | S_IWRITE +#elif defined( __BORLANDC__ ) + mode | S_IWUSR #else mode | S_IWUSR | S_IWGRP #endif diff --git a/Source/cmWriteFileCommand.cxx b/Source/cmWriteFileCommand.cxx index ec558b6..b2acb2b 100644 --- a/Source/cmWriteFileCommand.cxx +++ b/Source/cmWriteFileCommand.cxx @@ -62,6 +62,8 @@ bool cmWriteFileCommand cmSystemTools::SetPermissions(fileName.c_str(), #if defined( _MSC_VER ) || defined( __MINGW32__ ) mode | S_IWRITE +#elif defined( __BORLANDC__ ) + mode | S_IWUSR #else mode | S_IWUSR | S_IWGRP #endif -- cgit v0.12