From 43c0659f2d7b2882ee3b95f7d0a0deb96baac469 Mon Sep 17 00:00:00 2001 From: David Grove Date: Thu, 21 Jul 2016 08:34:32 -0400 Subject: [PATCH] fix compilation error when building against old libkqueue Should have used an ifdef instead of an if to guard this block of code. Fixes compilation on linux when using an older version of libkqueue that doesn't include the nsec kevent support. --- src/source.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/source.c b/src/source.c index f028c6b8c..debd2b1ec 100644 --- a/src/source.c +++ b/src/source.c @@ -2341,7 +2341,7 @@ _dispatch_kevent_timer_set_delay(_dispatch_kevent_qos_s *ke, uint64_t delay, { // call to update nows[] _dispatch_source_timer_now(nows, DISPATCH_TIMER_KIND_WALL); -#if KEVENT_NSEC_NOT_SUPPORTED +#ifdef KEVENT_NSEC_NOT_SUPPORTED // adjust nsec based delay to msec based and ignore leeway delay /= 1000000L; if ((int64_t)(delay) <= 0) {