* updated kmbox (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / develop / libdispatch / hotfixes.patch
blob0fa1057615b783086cdca1d30bc9f1e01b8f5f98
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../libdispatch/hotfixes.patch
5 # Copyright (C) 2020 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- swift-corelibs-libdispatch-swift-4.2.2-RELEASE/src/shims/generic_unix_stubs.c.vanilla 2020-11-14 17:06:38.814641625 +0100
18 +++ swift-corelibs-libdispatch-swift-4.2.2-RELEASE/src/shims/generic_unix_stubs.c 2020-11-14 17:06:53.106641825 +0100
19 @@ -53,5 +53,5 @@
20 unsigned short dispatch_callout__entry_semaphore;
21 unsigned short dispatch_callout__return_semaphore;
22 unsigned short dispatch_queue__push_semaphore;
23 -void (*_dispatch_block_special_invoke)(void*);
24 -struct dispatch_queue_attr_s _dispatch_queue_attr_concurrent;
25 +//void (*_dispatch_block_special_invoke)(void*);
26 +//struct dispatch_queue_attr_s _dispatch_queue_attr_concurrent;
27 --- swift-corelibs-libdispatch-swift-4.2.2-RELEASE/src/queue.c.vanilla 2020-11-14 17:03:17.226638801 +0100
28 +++ swift-corelibs-libdispatch-swift-4.2.2-RELEASE/src/queue.c 2020-11-14 17:03:33.742639033 +0100
29 @@ -920,12 +920,14 @@
31 #ifndef __ANDROID__
32 #ifdef SYS_gettid
33 +#if 0
34 DISPATCH_ALWAYS_INLINE
35 static inline pid_t
36 gettid(void)
38 return (pid_t)syscall(SYS_gettid);
40 +#endif
41 #elif defined(__FreeBSD__)
42 DISPATCH_ALWAYS_INLINE
43 static inline pid_t