summaryrefslogtreecommitdiff
path: root/UnixPkg/UnixSimpleFileSystemDxe/UnixSimpleFileSystem.c
diff options
context:
space:
mode:
authorAJFISH <AJFISH@6f19259b-4bc3-4df7-8a09-765794883524>2009-12-06 02:00:37 +0000
committerAJFISH <AJFISH@6f19259b-4bc3-4df7-8a09-765794883524>2009-12-06 02:00:37 +0000
commit7ee3b61338de1fa592227c719eca20f7813ea606 (patch)
tree057ca20e53d6384346f3e61114e450eb9bd1bc9c /UnixPkg/UnixSimpleFileSystemDxe/UnixSimpleFileSystem.c
parent2ef2b01e07c02db339f34004445734a2dbdd80e1 (diff)
downloadedk2-platforms-7ee3b61338de1fa592227c719eca20f7813ea606.tar.xz
Added support for Xcode on Snow Leopard. Upaded with bug fixes for Snow Leopard.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9519 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'UnixPkg/UnixSimpleFileSystemDxe/UnixSimpleFileSystem.c')
-rw-r--r--UnixPkg/UnixSimpleFileSystemDxe/UnixSimpleFileSystem.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/UnixPkg/UnixSimpleFileSystemDxe/UnixSimpleFileSystem.c b/UnixPkg/UnixSimpleFileSystemDxe/UnixSimpleFileSystem.c
index e39a18978f..b46c9dce97 100644
--- a/UnixPkg/UnixSimpleFileSystemDxe/UnixSimpleFileSystem.c
+++ b/UnixPkg/UnixSimpleFileSystemDxe/UnixSimpleFileSystem.c
@@ -836,7 +836,7 @@ OpenRoot:
NewPrivateFile->IsDirectoryPath = FALSE;
}
} else {
- struct stat finfo;
+ STAT_FIX finfo;
int res = NewPrivateFile->UnixThunk->Stat (NewPrivateFile->FileName, &finfo);
if (res == 0 && S_ISDIR(finfo.st_mode))
NewPrivateFile->IsDirectoryPath = TRUE;
@@ -1107,7 +1107,7 @@ Returns:
struct tm *tm;
tm = UnixThunk->GmTime (&SystemTime);
Time->Year = tm->tm_year;
- Time->Month = tm->tm_mon;
+ Time->Month = tm->tm_mon + 1;
Time->Day = tm->tm_mday;
Time->Hour = tm->tm_hour;
Time->Minute = tm->tm_min;
@@ -1151,10 +1151,10 @@ Returns:
UINTN NameSize;
UINTN ResultSize;
EFI_FILE_INFO *Info;
- CHAR8 *RealFileName;
- CHAR8 *TempPointer;
+ CHAR8 *RealFileName;
+ CHAR8 *TempPointer;
CHAR16 *BufferFileName;
- struct stat buf;
+ STAT_FIX buf;
if (FileName != NULL) {
RealFileName = FileName;
@@ -1724,7 +1724,7 @@ Returns:
UINTN OldInfoSize;
EFI_TPL OldTpl;
mode_t NewAttr;
- struct stat OldAttr;
+ STAT_FIX OldAttr;
CHAR8 *OldFileName;
CHAR8 *NewFileName;
CHAR8 *CharPointer;