]> sjero.net Git - wget/commitdiff
[svn] Correctly check for _POSIX_MONOTONIC_CLOCK.
authorhniksic <devnull@localhost>
Fri, 29 Apr 2005 12:12:52 +0000 (05:12 -0700)
committerhniksic <devnull@localhost>
Fri, 29 Apr 2005 12:12:52 +0000 (05:12 -0700)
src/ChangeLog
src/ptimer.c

index 64e41ce381364c69419bc03d40fa840eea6f50d4..855a59ba63bc1c63a95690efc242aa49bea3767a 100644 (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>
 
        * ftp.c, hash.c, connect.c, host.c, http.c: Remove unreached code,
index 3eeb78c635925f7761a561acdf3924f2e4013f9d..52b8111eb483b663f6c7e3bb8e111195a02feea4 100644 (file)
@@ -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