...line 866 for my m_sched.c is sys_setscheduler(), not sched_setscheduler()...I'm beginning to think this may be due to some apple shenanigans with switching around posix defines and such...?
it seems that sys_setscheduler() is not implemented in osx / bsd ...
but violating the POSIX standard, _POSIX_PRIORITY_SCHEDULING is defined ... quoting Linux Programmer's Manual, SETSCHEDULER(2):
POSIX systems on which sched_setscheduler and sched_getscheduler are available define _POSIX_PRIORITY_SCHEDULING in <unistd.h>.
seems, we'll have to find another way to set the realtime scheduling on osx btw, you're running tiger / gcc 4.0, aren't you? it compiled fine on panther with gcc 3.3 ... hopefully osx 10.5 (yet another cat) will finally be posix compliant ...
until then, we'll probably have to write a workaround with getpriority and setpriority ...
cheers ... tim