Browse Source

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

master
Alibek Omarov 5 months ago
parent
commit
296f89acf9
  1. 2
      engine/platform/linux/sys_linux.c

2
engine/platform/linux/sys_linux.c

@ -150,7 +150,7 @@ void Linux_SetTimer( float tm ) @@ -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 );

Loading…
Cancel
Save