Skip to content

Commit 4f9b58c

Browse files
committed
synthesize declarations of missing observer types
1 parent fdeae8a commit 4f9b58c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/inline_internal.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,18 @@ _dispatch_queue_get_bound_thread(dispatch_queue_t dq)
513513
return dq->dq_thread;
514514
}
515515

516+
#if __LINUX_PORT_HDD__
517+
// START HACK: DAVE. These types are not defined anywhere in libdispatch sources,
518+
// so make something plausible up...
519+
typedef struct dispatch_pthread_root_queue_observer_hooks_s {
520+
void (*queue_will_execute)(dispatch_queue_t);
521+
void (*queue_did_execute)(dispatch_queue_t);
522+
} dispatch_pthread_root_queue_observer_hooks_s;
523+
524+
typedef struct dispatch_pthread_root_queue_observer_hooks_s *
525+
dispatch_pthread_root_queue_observer_hooks_t;
526+
#endif
527+
516528
DISPATCH_ALWAYS_INLINE
517529
static inline dispatch_pthread_root_queue_observer_hooks_t
518530
_dispatch_get_pthread_root_queue_observer_hooks(void)

0 commit comments

Comments
 (0)