Skip to content
Snippets Groups Projects
Commit 7612bc98 authored by Soeren Peters's avatar Soeren Peters
Browse files

syscall is deprecated on macos.

parent 07c441d0
No related branches found
No related tags found
No related merge requests found
......@@ -398,7 +398,9 @@ namespace UbSystem
#if defined UBSYSTEM_WINDOWS
return (unsigned long)GetCurrentThreadId();
#elif (defined(UBSYSTEM_LINUX) || defined(UBSYSTEM_APPLE)) && !defined(UBSYSTEM_CYGWIN)
return (unsigned long)syscall(SYS_gettid);
uint64_t tid;
pthread_threadid_np(nullptr, &tid);
return (unsigned long)tid;
#elif defined(UBSYSTEM_CYGWIN)
return (unsigned long)GetCurrentThreadId();
#elif defined(UBSYSTEM_AIX)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment