gjs-1.52.0 fails to compile against x86_64 musl systems
Trying to compile gjs-1.52.0 on Void Linux x86_64-musl results in the following errors:
gjs/profiler.cpp: In function 'void gjs_profiler_start(GjsProfiler*)':
gjs/profiler.cpp:425:24: error: 'SIGEV_THREAD_ID' was not declared in this scope
sev.sigev_notify = SIGEV_THREAD_ID;
^~~~~~~~~~~~~~~
gjs/profiler.cpp:425:24: note: suggested alternative: 'SIGEV_THREAD'
sev.sigev_notify = SIGEV_THREAD_ID;
^~~~~~~~~~~~~~~
SIGEV_THREAD
gjs/profiler.cpp:427:9: error: 'struct sigevent' has no member named '_sigev_un'; did you mean 'sigevent'?
sev._sigev_un._tid = syscall(__NR_gettid);
^~~~~~~~~
sigevent
make[1]: *** [Makefile:2405: gjs/libgjs_la-profiler.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/builddir/gjs-1.52.0'
make: *** [Makefile:1393: all] Error 2
=> ERROR: gjs-1.52.0_1: failed to run do_build() at line 13.
make: *** [Makefile:15: built/gjs] Error 1