aboutsummaryrefslogtreecommitdiff
path: root/zencore/thread.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2023-02-06 14:36:50 +0100
committerGitHub <[email protected]>2023-02-06 14:36:50 +0100
commit0daa2ff00b8457f497a338eb79b951ce5215b27c (patch)
tree233ebf82e370699626acfc2375368aaa85427ce8 /zencore/thread.cpp
parentremove legacy `export-project` and `import-project` (#222) (diff)
parentFixed wrong if-statement when checking for the presence of clang++ (diff)
downloadzen-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.cpp3
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