engine: platform: linux: fix build with musl (and probably other libcs) using portability macro

This commit is contained in:
Alibek Omarov 2024-01-23 18:57:33 +03:00
parent 5f31417bae
commit 296f89acf9

View File

@ -150,7 +150,7 @@ void Linux_SetTimer( float tm )
// this path availiable in POSIX, but may signal wrong thread...
// sev.sigev_notify = SIGEV_SIGNAL;
sev.sigev_notify = SIGEV_THREAD_ID;
sev._sigev_un._tid = gettid();
sev.sigev_notify_thread_id = gettid();
sev.sigev_signo = DEBUG_TIMER_SIGNAL;
sev.sigev_value.sival_ptr = &timerid;
timer_create( CLOCK_REALTIME, &sev, &timerid );