diff options
| author | Martin Ridgers <[email protected]> | 2023-02-06 14:36:50 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-02-06 14:36:50 +0100 |
| commit | 0daa2ff00b8457f497a338eb79b951ce5215b27c (patch) | |
| tree | 233ebf82e370699626acfc2375368aaa85427ce8 /zencore/thread.cpp | |
| parent | remove legacy `export-project` and `import-project` (#222) (diff) | |
| parent | Fixed wrong if-statement when checking for the presence of clang++ (diff) | |
| download | zen-0daa2ff00b8457f497a338eb79b951ce5215b27c.tar.xz zen-0daa2ff00b8457f497a338eb79b951ce5215b27c.zip | |
Merge pull request #219 from EpicGames/linux-build
Scripts for building Linux binaries using UE's Linux toolchain.
Diffstat (limited to 'zencore/thread.cpp')
| -rw-r--r-- | zencore/thread.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zencore/thread.cpp b/zencore/thread.cpp index 77b75bae3..1597a7dd9 100644 --- a/zencore/thread.cpp +++ b/zencore/thread.cpp @@ -29,6 +29,7 @@ # include <sys/file.h> # include <sys/sem.h> # include <sys/stat.h> +# include <sys/syscall.h> # include <sys/wait.h> # include <time.h> # include <unistd.h> @@ -1065,7 +1066,7 @@ GetCurrentThreadId() #if ZEN_PLATFORM_WINDOWS return ::GetCurrentThreadId(); #elif ZEN_PLATFORM_LINUX - return int(gettid()); + return int(syscall(SYS_gettid)); #elif ZEN_PLATFORM_MAC return int(pthread_mach_thread_np(pthread_self())); #endif |