From c65d4ff828582f4550c606e76e9d9991cdf3d9d2 Mon Sep 17 00:00:00 2001 From: hniksic Date: Fri, 15 Apr 2005 04:09:45 -0700 Subject: [PATCH] [svn] Check for defined(_POSIX_TIMERS) before checking the value. --- src/ChangeLog | 5 +++++ src/ptimer.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 3ccbb710..dec3d4ca 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-04-15 Hrvoje Niksic + + * ptimer.c: Check that _POSIX_TIMERS is defined as well as > 0. + Problem reported by Steven M. Schweda. + 2005-04-14 Hrvoje Niksic * http.c (skip_short_body): Print the skipped body data in debug diff --git a/src/ptimer.c b/src/ptimer.c index 33ca728e..3a09ceba 100644 --- a/src/ptimer.c +++ b/src/ptimer.c @@ -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