diff --git a/src/util.cpp b/src/util.cpp index 3043f6b9a3..f55c9c8c34 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1064,7 +1064,7 @@ fs::path AbsPathForConfigVal(const fs::path& path, bool net_specific) int ScheduleBatchPriority(void) { #ifdef SCHED_BATCH - const static sched_param param{.sched_priority = 0}; + const static sched_param param{0}; if (int ret = pthread_setschedparam(pthread_self(), SCHED_BATCH, ¶m)) { LogPrintf("Failed to pthread_setschedparam: %s\n", strerror(errno)); return ret;