title: pthread_getschedparam No Matching Function Call
body: <p>I'm a little confused why the following code is generating an error "No matching function to call 'pthread_getschedparam'" when I try to build it with XCode:</p>
  
  <pre><code>#if MACRO_OSX_PLATFORM()
  #include &lt;pthread.h&gt;
  #endif
  ...
  struct sched_param sp = {0};
  pthread_getschedparam(pthread_self(), SCHED_OTHER, &amp;sp);
  return sp.sched_priority;
  </code></pre>
  
  <p>Any thoughts? Did I miss something essential? By the way, the macro that checks for OSX platform works, 100 percent.</p>