Skip to content

Commit 3401e03

Browse files
seabayleadas
authored andcommitted
Assign properties to dispatch_queue_attr_concurrent on Linux
Signed-off-by: Daniel A. Steffen <[email protected]>
1 parent 16c381a commit 3401e03

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/init.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,14 @@ const struct dispatch_queue_attr_s _dispatch_queue_attrs[]
261261
};
262262

263263

264+
// _dispatch_queue_attr_concurrent is aliased using libdispatch.aliases
265+
// and the -alias_list linker option on Darwin but needs to be done manually
266+
// for other platforms.
267+
#ifndef __APPLE__
268+
extern struct dispatch_queue_attr_s _dispatch_queue_attr_concurrent
269+
__attribute__((__alias__("_dispatch_queue_attrs")));
270+
#endif
271+
264272
#pragma mark -
265273
#pragma mark dispatch_vtables
266274

0 commit comments

Comments
 (0)