We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21255c0 commit e76d0eeCopy full SHA for e76d0ee
Sources/_TestingInternals/include/Stubs.h
@@ -152,6 +152,14 @@ static int swt_siginfo_t_si_status(const siginfo_t *siginfo) {
152
#endif
153
154
155
+#if defined(__linux__) || defined(__ANDROID__)
156
+/// Get the current thread's ID.
157
+///
158
+/// This function is redeclared here because it is guarded by `_GNU_SOURCE` in
159
+/// the platform headers.
160
+SWT_EXTERN pid_t gettid(void);
161
+#endif
162
+
163
/// Get the value of `EEXIST`.
164
///
165
/// This function is provided because `EEXIST` is a complex macro in wasi-libc
0 commit comments