From 140690a630d06fddb7827888d48e16054b2c980f Mon Sep 17 00:00:00 2001 From: sojkam Date: Tue, 17 Feb 2009 14:57:12 +0000 Subject: [PATCH] Updated for compilation on older systems without PTHREAD_PRIO_INHERIT git-svn-id: http://www.frescor.org/private/svn/frescor/fosa/trunk@1554 35b4ef3e-fd22-0410-ab77-dab3279adceb --- src_aquosa/fosa_threads_and_signals.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src_aquosa/fosa_threads_and_signals.c b/src_aquosa/fosa_threads_and_signals.c index 03e3116..a591071 100644 --- a/src_aquosa/fosa_threads_and_signals.c +++ b/src_aquosa/fosa_threads_and_signals.c @@ -61,6 +61,10 @@ #include "fosa_configuration_parameters.h" #include "fosa_threads_and_signals.h" +#ifdef OMK_FOR_USER /* If compiled by OMK, use the config */ +#include "fosa_config.h" +#endif + /************************* * Storage of thread-specific keys *************************/ @@ -82,8 +86,10 @@ int init_keys() ret = pthread_mutexattr_init(&attr); if (ret) return errno; +#ifndef CONFIG_NO_PRIO_INHERIT /* Not supported on older systems */ ret = pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT); if (ret) return errno; +#endif ret = pthread_mutex_init(&key_lock,&attr); if (ret) return errno; -- 2.39.2