summaryrefslogtreecommitdiffstats
path: root/gettid.patch
blob: 5be918b3a3e33df80c169e5519639e7f1052d51e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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