fixed for minix, which does not have ftime
This commit is contained in:
parent
42940634dd
commit
44b74a6c84
1 changed files with 5 additions and 0 deletions
|
@ -40,12 +40,17 @@ tzset()
|
||||||
__daylight = tzon.tz_dsttime;
|
__daylight = tzon.tz_dsttime;
|
||||||
#else
|
#else
|
||||||
#ifndef __USG
|
#ifndef __USG
|
||||||
|
#if minix || minixST
|
||||||
|
__timezone = 0L;
|
||||||
|
__daylight = 0;
|
||||||
|
#else
|
||||||
struct timeb time;
|
struct timeb time;
|
||||||
|
|
||||||
ftime(&time);
|
ftime(&time);
|
||||||
__timezone = time.timezone*60L;
|
__timezone = time.timezone*60L;
|
||||||
__daylight = time.dstflag;
|
__daylight = time.dstflag;
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue