]> sjero.net Git - wget/commitdiff
[svn] Check for defined(_POSIX_TIMERS) before checking the value.
authorhniksic <devnull@localhost>
Fri, 15 Apr 2005 11:09:45 +0000 (04:09 -0700)
committerhniksic <devnull@localhost>
Fri, 15 Apr 2005 11:09:45 +0000 (04:09 -0700)
src/ChangeLog
src/ptimer.c

index 3ccbb7108328d7514dcb667a7d6086a0620cfcf2..dec3d4caa73bd0ff78df01eb4d6313d976dddf4c 100644 (file)
@@ -1,3 +1,8 @@
+2005-04-15  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * ptimer.c: Check that _POSIX_TIMERS is defined as well as > 0.
+       Problem reported by Steven M. Schweda.
+
 2005-04-14  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * http.c (skip_short_body): Print the skipped body data in debug
index 33ca728eb8d3bcdd6c75c42cdbd0b88e4cbf7da9..3a09ceba760ad0010332d569b0a6466eae04d940 100644 (file)
@@ -92,7 +92,7 @@ extern int errno;
 #if defined(WINDOWS) || defined(__CYGWIN__)
 # define PTIMER_WINDOWS                /* use Windows timers */
 #else
-# if _POSIX_TIMERS > 0
+# if defined(_POSIX_TIMERS) && _POSIX_TIMERS > 0
 #  define PTIMER_POSIX         /* use POSIX timers (clock_gettime) */
 # else
 #  ifdef HAVE_GETTIMEOFDAY