mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-07-24 17:10:18 +00:00
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:
parent
c597079a3e
commit
279e297842
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user