You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2005/05/05 02:32:04 UTC
cvs commit: xml-xalan/c/src/xalanc/PlatformSupport DirectoryEnumerator.hpp
dbertoni 2005/05/04 17:32:04
Modified: c/src/xalanc/PlatformSupport DirectoryEnumerator.hpp
Log:
Fix for Jira issue XALANC-505.
Revision Changes Path
1.18 +9 -3 xml-xalan/c/src/xalanc/PlatformSupport/DirectoryEnumerator.hpp
Index: DirectoryEnumerator.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/xalanc/PlatformSupport/DirectoryEnumerator.hpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- DirectoryEnumerator.hpp 22 Apr 2005 20:52:41 -0000 1.17
+++ DirectoryEnumerator.hpp 5 May 2005 00:32:04 -0000 1.18
@@ -148,10 +148,16 @@
*/
bool isDirectory() const
{
+#if defined(__SunOS_5_10) && (__SUNPRO_CC >= 0x570)
+ struct stat64 stat_Info;
+
+ const int retCode = stat64(d_name, &stat_Info);
+#else
+ struct stat stat_Info;
+
+ const int retCode = stat(d_name, &stat_Info);
+#endif
- struct stat stat_Info;
- const int retCode = stat(d_name, &stat_Info);
-
return retCode == -1 ? false : S_ISDIR(stat_Info.st_mode);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org