From 7ee3b61338de1fa592227c719eca20f7813ea606 Mon Sep 17 00:00:00 2001 From: AJFISH Date: Sun, 6 Dec 2009 02:00:37 +0000 Subject: 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 --- UnixPkg/UnixSimpleFileSystemDxe/UnixSimpleFileSystem.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'UnixPkg/UnixSimpleFileSystemDxe') 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; -- cgit v1.2.3