Skip to content

Commit dfab04b

Browse files
committed
only define the function when used
This function is only used if the pthread-workqueues QOS APIs are available. Guard it as such.
1 parent 09a6394 commit dfab04b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/queue.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5148,6 +5148,7 @@ _dispatch_trystash_to_deferred_items(dispatch_queue_t dq, dispatch_object_t dou,
51485148
}
51495149
#endif
51505150

5151+
#if HAVE_PTHREAD_WORKQUEUE_QOS
51515152
DISPATCH_NOINLINE
51525153
static void
51535154
_dispatch_queue_push_slow(dispatch_queue_t dq, dispatch_object_t dou,
@@ -5157,6 +5158,7 @@ _dispatch_queue_push_slow(dispatch_queue_t dq, dispatch_object_t dou,
51575158
_dispatch_root_queues_init_once);
51585159
_dispatch_queue_push(dq, dou, pp);
51595160
}
5161+
#endif
51605162

51615163
DISPATCH_NOINLINE
51625164
void

0 commit comments

Comments
 (0)