summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/Directory.cxx
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-09-17 19:55:17 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-09-17 19:55:17 (GMT)
commit4ee1ee1bd0d6b19feb5846bfeccdc39a90d52ac8 (patch)
tree911ac1b075af9be769d8999e61dec635b1257f4c /Source/kwsys/Directory.cxx
parentf9391ab2916755b319dff4dd11282425b2c076cc (diff)
downloadCMake-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.cxx9
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
{