Fix build on 64-bit platforms. Patch from Max Alekseyev <relf@os2.ru>
This commit is contained in:
@@ -131,7 +131,7 @@ inline struct tm *ggmtime(const time32_t *timep)
|
||||
struct tm *time = gmtime(&temp);
|
||||
return time ? time : gmtime(&zero);
|
||||
#else
|
||||
return gmtime(&temp);
|
||||
return gmtime(temp);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@@ -292,7 +292,7 @@ char *gcpuid(char *_cpuname)
|
||||
|
||||
cpuname( scpuid.family, scpuid.model, scpuid.vendor, _cpuname);
|
||||
|
||||
#elif defined(__GNUC__)
|
||||
#elif defined(__GNUC__) && defined(__i386__)
|
||||
|
||||
asm( /* assembler code is based on code of FreeBSD kernel sources */
|
||||
/* uses AT&T assembler notation */
|
||||
|
Reference in New Issue
Block a user