From 279e297842919a5a2ac01baf920cf06ed5ee5dbb Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Tue, 21 Jul 2009 01:31:39 +0000 Subject: [PATCH] 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 --- configure.ac | 2 +- exec/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 4cec08fb..bff779ae 100644 --- a/configure.ac +++ b/configure.ac @@ -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 diff --git a/exec/main.c b/exec/main.c index 5bbf5540..2fdb62e5 100644 --- a/exec/main.c +++ b/exec/main.c @@ -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);