1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00
freebsd-ports/archivers/p7zip/files/patch-ba
Sergey Matveychuk a0b4fb6047 file archiver with highest compression ratio
PR:		ports/69248
Submitted by:	Juergen Lock <nox@jelal.kn-bremen.de>
2004-08-11 18:07:36 +00:00

20 lines
591 B
Plaintext

Index: Windows/Time.h
@@ -41,7 +41,7 @@
fileTime.dwHighDateTime = DWORD(ll >> 32);
}
-inline bool FileTimeToUnixTime(const FILETIME &fileTime, long &unixTime)
+inline bool FileTimeToUnixTime(const FILETIME &fileTime, time_t &unixTime)
{
UINT64 winTime = (((UINT64)fileTime.dwHighDateTime) << 32) + fileTime.dwLowDateTime;
if (winTime < kUnixTimeStartValue)
@@ -49,7 +49,7 @@
winTime = (winTime - kUnixTimeStartValue) / kNumTimeQuantumsInSecond;
if (winTime >= 0xFFFFFFFF)
return false;
- unixTime = (long)winTime;
+ unixTime = (time_t)winTime;
return true;
}