mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 11:15:13 +03:00
12 lines
459 B
Diff
12 lines
459 B
Diff
--- a/galerautils/src/gu_thread.cpp
|
|
+++ b/galerautils/src/gu_thread.cpp
|
|
@@ -87,7 +87,8 @@
|
|
#if defined(__sun__)
|
|
struct sched_param spstr = { sp.prio(), { 0, } /* sched_pad array */};
|
|
#else
|
|
- struct sched_param spstr = { sp.prio() };
|
|
+ /* musl has some reserved fields in sched_param... */
|
|
+ struct sched_param spstr = { sp.prio(), 0, 0, 0, 0, 0, 0 };
|
|
#endif
|
|
int err;
|
|
if ((err = pthread_setschedparam(thd, sp.policy(), &spstr)) != 0)
|