Skip to content

Commit 72eb2b2

Browse files
committed
HAVE_MACH is unnecessary here.
The kevent backend requires _dispatch_bug_kevent_client unconditionally. We don't need to require this entire function require HAVE_MACH, just the inner few that is already present behind this conditional.
1 parent 0d0871d commit 72eb2b2

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/init.c

-2
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,6 @@ _dispatch_continuation_get_function_symbol(dispatch_continuation_t dc)
961961
return dc->dc_func;
962962
}
963963

964-
#if HAVE_MACH
965964
void
966965
_dispatch_bug_kevent_client(const char *msg, const char *filter,
967966
const char *operation, int err, uint64_t ident, uint64_t udata,
@@ -1005,7 +1004,6 @@ _dispatch_bug_kevent_client(const char *msg, const char *filter,
10051004
msg, strerror(err), err, udata, filter, ident, ident, func);
10061005
}
10071006
}
1008-
#endif // HAVE_MACH
10091007

10101008
#if RDAR_49023449
10111009

src/internal.h

-2
Original file line numberDiff line numberDiff line change
@@ -475,12 +475,10 @@ void _dispatch_bug_mach_client(const char *msg, mach_msg_return_t kr);
475475

476476
struct dispatch_unote_class_s;
477477

478-
#if HAVE_MACH
479478
DISPATCH_NOINLINE DISPATCH_COLD
480479
void _dispatch_bug_kevent_client(const char *msg, const char *filter,
481480
const char *operation, int err, uint64_t ident, uint64_t udata,
482481
struct dispatch_unote_class_s *du);
483-
#endif // HAVE_MACH
484482

485483
DISPATCH_NOINLINE DISPATCH_COLD
486484
void _dispatch_bug_kevent_vanished(struct dispatch_unote_class_s *du);

0 commit comments

Comments
 (0)