Skip to content

Commit 43c0659

Browse files
committed
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.
1 parent b84e87e commit 43c0659

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/source.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2341,7 +2341,7 @@ _dispatch_kevent_timer_set_delay(_dispatch_kevent_qos_s *ke, uint64_t delay,
23412341
{
23422342
// call to update nows[]
23432343
_dispatch_source_timer_now(nows, DISPATCH_TIMER_KIND_WALL);
2344-
#if KEVENT_NSEC_NOT_SUPPORTED
2344+
#ifdef KEVENT_NSEC_NOT_SUPPORTED
23452345
// adjust nsec based delay to msec based and ignore leeway
23462346
delay /= 1000000L;
23472347
if ((int64_t)(delay) <= 0) {

0 commit comments

Comments
 (0)