aboutsummaryrefslogtreecommitdiffstats
path: root/testing/galera/musl-sched_param.patch
blob: ef8640aa4bacb0d989155a5fa82668a845d970bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- 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)