aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-devtools/osx-runtime/files/fix_typedef_dispatch_block_t.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-devtools/osx-runtime/files/fix_typedef_dispatch_block_t.patch')
-rw-r--r--recipes-devtools/osx-runtime/files/fix_typedef_dispatch_block_t.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/recipes-devtools/osx-runtime/files/fix_typedef_dispatch_block_t.patch b/recipes-devtools/osx-runtime/files/fix_typedef_dispatch_block_t.patch
new file mode 100644
index 0000000..6a1bace
--- /dev/null
+++ b/recipes-devtools/osx-runtime/files/fix_typedef_dispatch_block_t.patch
@@ -0,0 +1,16 @@
+Index: OSX-sdk/usr/include/dispatch/object.h
+===================================================================
+--- OSX-sdk.orig/usr/include/dispatch/object.h
++++ OSX-sdk/usr/include/dispatch/object.h
+@@ -140,7 +140,11 @@ typedef union {
+ * Instead, the block literal must be copied to the heap with the Block_copy()
+ * function or by sending it a -[copy] message.
+ */
++#if defined(__clang__)
+ typedef void (^dispatch_block_t)(void);
++#else
++typedef void* dispatch_block_t;
++#endif
+
+ __BEGIN_DECLS
+