]> sjero.net Git - wget/commitdiff
[svn] Check for defined-ness of _POSIX_MONOTONIC_CLOCK, don't require
authorhniksic <devnull@localhost>
Thu, 7 Apr 2005 23:22:53 +0000 (16:22 -0700)
committerhniksic <devnull@localhost>
Thu, 7 Apr 2005 23:22:53 +0000 (16:22 -0700)
it to be >0.

src/ChangeLog
src/ptimer.c

index 8242627cff50bee3525be31bfd055503f83e1b35..bddaa88c72e0a57de764725f922fbb583d1d9ec9 100644 (file)
@@ -1,3 +1,14 @@
+2005-04-08  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * ptimer.c (ptimer_init): Check whether _POSIX_MONOTONIC_CLOCK is
+       defined instead of whether it's greater than 0.  glibc defines it
+       to 0, but still makes it available via sysconf.
+
+2005-04-08  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * mswindows.c (str_to_int64): Rename OVERFLOW and UNDERFLOW to
+       INT64_OVERFLOW and INT64_UNDERFLOW, since those names are used.
+
 2005-04-07  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * ptimer.c: New file.  Move the "wtimer" functions from utils.c to
index e6979216aa60399c7c97d7ccda883135cda24437..45a389a847e67db993c0880ef8039596e6093662 100644 (file)
@@ -183,7 +183,7 @@ ptimer_init (void)
 {
   struct timespec res;
 
-#if _POSIX_MONOTONIC_CLOCK > 0
+#ifdef _POSIX_MONOTONIC_CLOCK
   if (sysconf (_SC_MONOTONIC_CLOCK) > 0)
     posix_clock_id = CLOCK_MONOTONIC;
   else