Applied a few OS/2 patches for wxGTK.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4411 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1999-11-06 19:39:09 +00:00
parent 74d38ad8e2
commit 9f2d09aad2
3 changed files with 19 additions and 7 deletions

View File

@@ -109,15 +109,21 @@ wxFileData::wxFileData( const wxString &name, const wxString &fname )
struct stat buff;
stat( m_fileName.fn_str(), &buff );
#ifndef __EMX__
struct stat lbuff;
lstat( m_fileName.fn_str(), &lbuff );
m_isLink = S_ISLNK( lbuff.st_mode );
struct tm *t = localtime( &lbuff.st_mtime );
#else
m_isLink = FALSE;
struct tm *t = localtime( &buff.st_mtime );
#endif
// struct passwd *user = getpwuid( buff.st_uid );
// struct group *grp = getgrgid( buff.st_gid );
m_isDir = S_ISDIR( buff.st_mode );
m_isLink = S_ISLNK( lbuff.st_mode );
m_isExe = ((buff.st_mode & S_IXUSR ) == S_IXUSR );
m_size = buff.st_size;