Skip to content

Commit 99fce10

Browse files
3405691582dana
authored and
dana
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 1483bf0 commit 99fce10

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/init.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,6 @@ _dispatch_continuation_get_function_symbol(dispatch_continuation_t dc)
964964
return dc->dc_func;
965965
}
966966

967-
#if HAVE_MACH
968967
void
969968
_dispatch_bug_kevent_client(const char *msg, const char *filter,
970969
const char *operation, int err, uint64_t ident, uint64_t udata,
@@ -1008,7 +1007,6 @@ _dispatch_bug_kevent_client(const char *msg, const char *filter,
10081007
msg, strerror(err), err, udata, filter, ident, ident, func);
10091008
}
10101009
}
1011-
#endif // HAVE_MACH
10121010

10131011
#if RDAR_49023449
10141012

src/internal.h

Lines changed: 0 additions & 2 deletions
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)