Skip to content

Commit 701799a

Browse files
author
Gogs
committed
[Bugfix] fix gettid method is not define
Signed-off-by: Gogs <[email protected]>
1 parent 63375f0 commit 701799a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

csrc/cpu/utils.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
#include <string>
55
#include <sched.h>
66
#endif
7+
#include <unistd.h>
8+
#include <sys/syscall.h>
9+
#define gettid() syscall(SYS_gettid)
710

811
#include "cpu_types.hpp"
912

0 commit comments

Comments
 (0)