mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Correctly check for _POSIX_MONOTONIC_CLOCK.
This commit is contained in:
parent
a4b51a6998
commit
2051e4792e
@ -1,3 +1,9 @@
|
||||
2005-04-29 Hrvoje Niksic <hniksic@xemacs.org>
|
||||
|
||||
* ptimer.c (posix_init): Since we allow _POSIX_MONOTONIC_CLOCK==0,
|
||||
it is not enough to check for _POSIX_MONOTONIC_CLOCK-0, we must
|
||||
also check for defined(_POSIX_MONOTONIC_CLOCK).
|
||||
|
||||
2005-04-28 Hrvoje Niksic <hniksic@xemacs.org>
|
||||
|
||||
* ftp.c, hash.c, connect.c, host.c, http.c: Remove unreached code,
|
||||
|
@ -139,7 +139,7 @@ posix_init (void)
|
||||
int id;
|
||||
int sysconf_name;
|
||||
} clocks[] = {
|
||||
#if _POSIX_MONOTONIC_CLOCK - 0 >= 0
|
||||
#if defined(_POSIX_MONOTONIC_CLOCK) && _POSIX_MONOTONIC_CLOCK - 0 >= 0
|
||||
{ CLOCK_MONOTONIC, _SC_MONOTONIC_CLOCK },
|
||||
#endif
|
||||
#ifdef CLOCK_HIGHRES
|
||||
|
Loading…
Reference in New Issue
Block a user