1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 11:15:13 +03:00
aports/community/galera/musl-sched_param.patch
Jake Buchholz Göktürk 8407fe8b03 community/galera: moved from testing
galera version is up-to-date, and is building on all supported archs.
2022-11-25 19:36:23 +00:00

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)