From 15efde21a039f2dfa11c715c9c40b6d12813baf3 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sat, 3 Oct 2009 13:22:27 +0200 Subject: Consolidate basic glibc structs Fixes crashes on PPC32 --- UEngines.pas | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'UEngines.pas') diff --git a/UEngines.pas b/UEngines.pas index b77d7e3..c08b077 100644 --- a/UEngines.pas +++ b/UEngines.pas @@ -303,7 +303,7 @@ begin IsChr := __S_ISTYPE(StatBuf^.st_mode, __S_IFCHR); IsFIFO := __S_ISTYPE(StatBuf^.st_mode, __S_IFIFO); IsSock := __S_ISTYPE(StatBuf^.st_mode, __S_IFSOCK); - ModifyTime := StatBuf^.st_mtim.tv_sec; + ModifyTime := StatBuf^.st_mtime; if StatBuf^.st_uid = 4294967295 then UID := getuid else UID := StatBuf^.st_uid; if StatBuf^.st_gid = 4294967295 then GID := getgid @@ -567,8 +567,8 @@ var Handle : PDIR; else UID := StatBuf_local^.st_uid; if StatBuf_local^.st_gid = 4294967295 then GID := getgid else GID := StatBuf_local^.st_gid; - atime := StatBuf_local^.st_atim.tv_sec; - mtime := StatBuf_local^.st_mtim.tv_sec; + atime := StatBuf_local^.st_atime; + mtime := StatBuf_local^.st_mtime; if IsLnk and AddCurrDirStage then DebugMsg(['*** Assertion failed AddEntry: Item^.IsLnk = True']); if IsLnk and (not AddCurrDirStage) then begin i := readlink(PChar(APath + String(PChar(@DirEnt^.d_name[0]))), LnkBuf, SizeOf(LnkBuf)); @@ -580,7 +580,7 @@ var Handle : PDIR; // StrLCopy(LnkPointTo, @LnkBuf[0], i); end; end; - ModifyTime := StatBuf_local^.st_mtim.tv_sec; + ModifyTime := StatBuf_local^.st_mtime; // DebugMsg([FormatDateTime('c', ModifyTime)]); Level := ALevel + Ord(not AddCurrDirStage); libc_free(StatBuf_local); @@ -667,14 +667,14 @@ begin // DebugMsg(['x2']); ForceMove := False; // DebugMsg(['x2']); - ModifyTime := StatBuf^.st_mtim.tv_sec; + ModifyTime := StatBuf^.st_mtime; // DebugMsg(['x2']); if StatBuf^.st_uid = 4294967295 then UID := getuid else UID := StatBuf^.st_uid; if StatBuf^.st_gid = 4294967295 then GID := getgid else GID := StatBuf^.st_gid; - atime := StatBuf^.st_atim.tv_sec; - mtime := StatBuf^.st_mtim.tv_sec; + atime := StatBuf^.st_atime; + mtime := StatBuf^.st_mtime; // DebugMsg(['x1']); libc_free(StatBuf); // DebugMsg(['x1']); -- cgit v1.2.3