Darwin is missing the sched_setscheduler system call.

Patch detects it and resolves the build failure.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2366 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
Steven Dake 2009-07-21 01:31:39 +00:00
parent c597079a3e
commit 279e297842
2 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ AC_CHECK_FUNCS([alarm alphasort atexit bzero dup2 endgrent endpwent fcntl \
memset mkdir scandir select socket strcasecmp strchr strdup \
strerror strrchr strspn strstr pthread_spin_lock \
pthread_spin_unlock pthread_setschedparam \
sched_get_priority_max])
sched_get_priority_max sched_setscheduler])
AC_CONFIG_FILES([Makefile
exec/Makefile

View File

@ -689,7 +689,7 @@ static struct coroipcs_init_state ipc_init_state = {
static void corosync_setscheduler (void)
{
#if defined(HAVE_PTHREAD_SETSCHEDPARAM) && defined(HAVE_SCHED_GET_PRIORITY_MAX)
#if defined(HAVE_PTHREAD_SETSCHEDPARAM) && defined(HAVE_SCHED_GET_PRIORITY_MAX) && defined(HAVE_SCHED_SETSCHEDULER)
int res;
sched_priority = sched_get_priority_max (SCHED_RR);