Skip to content

Commit 6ea8b4c

Browse files
authored
[llvm][Support] Use __NR_gettid on Linux for compat with older glibc (#120007)
1 parent 00840fb commit 6ea8b4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Support/Unix/Threading.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ uint64_t llvm::get_threadid() {
141141
#elif defined(__ANDROID__)
142142
return uint64_t(gettid());
143143
#elif defined(__linux__)
144-
return uint64_t(syscall(SYS_gettid));
144+
return uint64_t(syscall(__NR_gettid));
145145
#else
146146
return uint64_t(pthread_self());
147147
#endif

0 commit comments

Comments
 (0)