mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-07 13:28:05 +08:00
Removed #if 0.
This commit is contained in:
parent
58e6e5bfc6
commit
ed556c3c99
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1991, 92, 94, 95, 96, 97 Free Software Foundation, Inc.
|
/* Copyright (C) 1991, 92, 94, 95, 96, 97, 2001 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -57,10 +57,9 @@ __gettimeofday (tv, tz)
|
|||||||
if (ts != tu) /* the lower reg to the upper */
|
if (ts != tu) /* the lower reg to the upper */
|
||||||
tl = rtc_lower(); /* Recover from the race condition */
|
tl = rtc_lower(); /* Recover from the race condition */
|
||||||
|
|
||||||
tv->tv_sec = (long int) (tu + (double)tl/1000000000);
|
tv->tv_sec = (long int) (tu + (double)tl/1000000000);
|
||||||
tv->tv_usec = (long int) ((double)tl/1000);
|
tv->tv_usec = (long int) ((double)tl/1000);
|
||||||
|
|
||||||
#if 0
|
|
||||||
if (tz != NULL)
|
if (tz != NULL)
|
||||||
{
|
{
|
||||||
const time_t timer = tv->tv_sec;
|
const time_t timer = tv->tv_sec;
|
||||||
@ -86,7 +85,6 @@ __gettimeofday (tv, tz)
|
|||||||
if (tmp == NULL)
|
if (tmp == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user