diff options
Diffstat (limited to 'gettid.patch')
-rw-r--r-- | gettid.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gettid.patch b/gettid.patch new file mode 100644 index 0000000..5be918b --- /dev/null +++ b/gettid.patch @@ -0,0 +1,20 @@ +--- swift-corelibs-libdispatch/src/queue.c.orig 2019-03-09 16:58:51.182875053 -0600 ++++ swift-corelibs-libdispatch/src/queue.c 2019-03-10 08:29:51.377391396 -0500 +@@ -926,7 +926,7 @@ + #ifdef SYS_gettid + DISPATCH_ALWAYS_INLINE + static inline pid_t +-gettid(void) ++__gettid(void) + { + return (pid_t)syscall(SYS_gettid); + } +@@ -1054,7 +1054,7 @@ + #else + pthread_setspecific(__dispatch_tsd_key, &__dispatch_tsd); + #endif /* defined(_WIN32) */ +- __dispatch_tsd.tid = gettid(); ++ __dispatch_tsd.tid = __gettid(); + } + #endif + |