1
0
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:
hniksic 2005-04-29 05:12:52 -07:00
parent a4b51a6998
commit 2051e4792e
2 changed files with 7 additions and 1 deletions

View File

@ -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> 2005-04-28 Hrvoje Niksic <hniksic@xemacs.org>
* ftp.c, hash.c, connect.c, host.c, http.c: Remove unreached code, * ftp.c, hash.c, connect.c, host.c, http.c: Remove unreached code,

View File

@ -139,7 +139,7 @@ posix_init (void)
int id; int id;
int sysconf_name; int sysconf_name;
} clocks[] = { } clocks[] = {
#if _POSIX_MONOTONIC_CLOCK - 0 >= 0 #if defined(_POSIX_MONOTONIC_CLOCK) && _POSIX_MONOTONIC_CLOCK - 0 >= 0
{ CLOCK_MONOTONIC, _SC_MONOTONIC_CLOCK }, { CLOCK_MONOTONIC, _SC_MONOTONIC_CLOCK },
#endif #endif
#ifdef CLOCK_HIGHRES #ifdef CLOCK_HIGHRES