Skip to content

Commit 12bdffa

Browse files
dgrove-ossdas
authored andcommitted
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. Signed-off-by: Daniel A. Steffen <dsteffen@apple.com>
1 parent 89c4fe1 commit 12bdffa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/source.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2339,7 +2339,7 @@ _dispatch_kevent_timer_set_delay(_dispatch_kevent_qos_s *ke, uint64_t delay,
23392339
{
23402340
// call to update nows[]
23412341
_dispatch_source_timer_now(nows, DISPATCH_TIMER_KIND_WALL);
2342-
#if KEVENT_NSEC_NOT_SUPPORTED
2342+
#ifdef KEVENT_NSEC_NOT_SUPPORTED
23432343
// adjust nsec based delay to msec based and ignore leeway
23442344
delay /= 1000000L;
23452345
if ((int64_t)(delay) <= 0) {

0 commit comments

Comments
 (0)