1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 04:05:40 +03:00
aports/testing/galera/musl-sched_param.patch
Jake Buchholz 13b8c9984e testing/galera: new aport
* galera = wsrep provider for mariadb
* galera-arbitrator = arbitrator daemon to provide quorum for clusters with even numbers of databases
2020-01-31 21:38:38 +01: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)