SUBDIRS = $(ALL_OMK_SUBDIRS)
+default_CONFIG = CONFIG_NO_PRIO_INHERIT=n
+LOCAL_CONFIG_H = fosa_config.h
+
#lib_LIBRARIES=fosa
shared_LIBRARIES=fosa
fosa_SOURCES=$(notdir $(wildcard $(SOURCES_DIR)/*.c))
#include "fosa_time.h"
#include "fosa_mutexes_and_condvars.h"
+#ifdef OMK_FOR_USER /* If compiled by OMK, use the config */
+#include "fosa_config.h"
+#endif
+
/*******************************************************
* Mutexes with priority/bandwidth inheritance
******************************************************/
if ((error = pthread_mutexattr_init(&attr)) != 0)
return error;
+#ifndef CONFIG_NO_PRIO_INHERIT /* Valgrind doesn't support this attribute */
if ((error = pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT)) != 0)
return error;
-
+#endif
return pthread_mutex_init(mutex, &attr);
}