未验证 提交 b1dbbb7f 编写于 作者: W wopeizl 提交者: GitHub

Merge pull request #14629 from wopeizl/windows/port

fix the build issue on manylinux1
...@@ -137,10 +137,10 @@ inline pid_t gettid() { ...@@ -137,10 +137,10 @@ inline pid_t gettid() {
#define __NR_gettid 224 #define __NR_gettid 224
#endif #endif
pid_t tid = syscall(__NR_gettid); pid_t tid = syscall(__NR_gettid);
#endif
#else // _WIN32 #else // _WIN32
pid_t tid = _getpid(); pid_t tid = _getpid();
#endif // _WIN32 #endif // _WIN32
#endif
CHECK_NE((int)tid, -1); CHECK_NE((int)tid, -1);
return tid; return tid;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册