X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Fptimer.c;h=47980cfcd2edc1bf0a34763d28c9686200c4d2cc;hb=c159a45df11dff55821a9dda0ad613628df1bc8e;hp=45a389a847e67db993c0880ef8039596e6093662;hpb=fbea09290bf714dfd1c453e6ab013667c9ca12be;p=wget diff --git a/src/ptimer.c b/src/ptimer.c index 45a389a8..47980cfc 100644 --- a/src/ptimer.c +++ b/src/ptimer.c @@ -183,7 +183,7 @@ ptimer_init (void) { struct timespec res; -#ifdef _POSIX_MONOTONIC_CLOCK +#if _POSIX_MONOTONIC_CLOCK >= 0 /* -1 means not supported */ if (sysconf (_SC_MONOTONIC_CLOCK) > 0) posix_clock_id = CLOCK_MONOTONIC; else