Skip to content

Commit 2e4e6af

Browse files
authored
Merge pull request swiftlang#114 from dgrove-oss/kevent-nsec-tweak
fix compilation error when building against old libkqueue
2 parents a8d0327 + 43c0659 commit 2e4e6af

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)