diff options
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 95f4d59..b395c98 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -15,7 +15,6 @@ =========================================================================*/ #include "cmSystemTools.h" -#include "errno.h" #include <stdio.h> #include <sys/stat.h> #include "cmRegularExpression.h" @@ -1166,6 +1165,15 @@ long int cmSystemTools::ModifiedTime(const char* filename) } +void cmSystemTools::ReportLastSystemError(const char* msg) +{ + int e = errno; + std::string m = msg; + m += ": System Error: "; + m += strerror(e); + cmSystemTools::Error(m.c_str()); +} + bool cmSystemTools::RemoveFile(const char* source) { |