diff --git a/src/thread/pithread.cpp b/src/thread/pithread.cpp index 7a0478f7..4dbf9251 100755 --- a/src/thread/pithread.cpp +++ b/src/thread/pithread.cpp @@ -320,7 +320,8 @@ void PIThread::setPriority(PIThread::Priority prior) { if (!running_ && (thread != 0)) return; policy_ = 0; memset(&sparam, 0, sizeof(sparam)); - pthread_getschedparam(thread, &policy_, &sparam); + struct sched_param param; + pthread_getschedparam(thread, &policy_, ¶m); sparam. # ifndef LINUX sched_priority