diff options
Diffstat (limited to 'testing/galera/musl-sched_param.patch')
-rw-r--r-- | testing/galera/musl-sched_param.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/galera/musl-sched_param.patch b/testing/galera/musl-sched_param.patch new file mode 100644 index 0000000000..ef8640aa4b --- /dev/null +++ b/testing/galera/musl-sched_param.patch @@ -0,0 +1,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) |