diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-09-17 19:55:17 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-09-17 19:55:17 (GMT) |
commit | 4ee1ee1bd0d6b19feb5846bfeccdc39a90d52ac8 (patch) | |
tree | 911ac1b075af9be769d8999e61dec635b1257f4c /Source/kwsys/Directory.cxx | |
parent | f9391ab2916755b319dff4dd11282425b2c076cc (diff) | |
download | CMake-4ee1ee1bd0d6b19feb5846bfeccdc39a90d52ac8.zip CMake-4ee1ee1bd0d6b19feb5846bfeccdc39a90d52ac8.tar.gz CMake-4ee1ee1bd0d6b19feb5846bfeccdc39a90d52ac8.tar.bz2 |
ENH: add support for the Portland Compiler to CMake, can build cmake and the tests pass (except the wrapping tests, which fail to link to the g++-compiled Qt)
Alex
Diffstat (limited to 'Source/kwsys/Directory.cxx')
-rw-r--r-- | Source/kwsys/Directory.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/kwsys/Directory.cxx b/Source/kwsys/Directory.cxx index bc775e9..00ee7e1 100644 --- a/Source/kwsys/Directory.cxx +++ b/Source/kwsys/Directory.cxx @@ -193,6 +193,15 @@ unsigned long Directory::GetNumberOfFilesInDirectory(const char* name) #include <sys/types.h> #include <dirent.h> +/* There is a problem with the Portland compiler, large file +support and glibc/Linux system headers: +http://www.pgroup.com/userforum/viewtopic.php? +p=1992&sid=f16167f51964f1a68fe5041b8eb213b6 +*/ +#if defined(__PGI) && defined(__USE_FILE_OFFSET64) +# define dirent dirent64 +#endif + namespace KWSYS_NAMESPACE { |