mirror of
https://salsa.debian.org/ha-team/libqb
synced 2026-08-09 05:09:58 +00:00
Build: configure: do not check for unused "sched" functions
Do not compile-time-conditionalize based on one of them being available, either.
This commit is contained in:
parent
04442d41d5
commit
db7dcd1411
@ -205,7 +205,6 @@ AC_CHECK_FUNCS([alarm clock_gettime ftruncate gettimeofday \
|
||||
pthread_mutexattr_setpshared \
|
||||
pthread_condattr_setpshared \
|
||||
sem_timedwait semtimedop \
|
||||
sched_get_priority_max sched_setscheduler \
|
||||
getpeerucred getpeereid])
|
||||
|
||||
AM_CONDITIONAL(HAVE_SEM_TIMEDWAIT,
|
||||
|
||||
@ -48,9 +48,9 @@ static int logt_sched_param_queued = QB_FALSE;
|
||||
|
||||
static int logt_sched_policy;
|
||||
|
||||
#if defined(HAVE_PTHREAD_SETSCHEDPARAM) && defined(HAVE_SCHED_GET_PRIORITY_MAX)
|
||||
#if defined(HAVE_PTHREAD_SETSCHEDPARAM)
|
||||
static struct sched_param logt_sched_param;
|
||||
#endif /* HAVE_PTHREAD_SETSCHEDPARAM && HAVE_SCHED_GET_PRIORITY_MAX */
|
||||
#endif /* HAVE_PTHREAD_SETSCHEDPARAM */
|
||||
|
||||
static pthread_t logt_thread_id = 0;
|
||||
|
||||
@ -113,7 +113,7 @@ qb_log_thread_priority_set(int32_t policy, int32_t priority)
|
||||
{
|
||||
int res = 0;
|
||||
|
||||
#if defined(HAVE_PTHREAD_SETSCHEDPARAM) && defined(HAVE_SCHED_GET_PRIORITY_MAX)
|
||||
#if defined(HAVE_PTHREAD_SETSCHEDPARAM)
|
||||
|
||||
logt_sched_policy = policy;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user