]> sjero.net Git - wget/blobdiff - src/ptimer.c
[svn] Correctly check for _POSIX_MONOTONIC_CLOCK.
[wget] / src / ptimer.c
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