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);