#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
*************************/
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;