diff --git a/osal/linux/Mutex.cpp b/osal/linux/Mutex.cpp index 36bb3ce43..b47732672 100644 --- a/osal/linux/Mutex.cpp +++ b/osal/linux/Mutex.cpp @@ -25,7 +25,9 @@ Mutex::Mutex() { sif::error << "Mutex: creation with name, id " << mutex.__data.__count << ", " << " failed with " << strerror(status) << std::endl; } - //After a mutex attributes object has been used to initialize one or more mutexes, any function affecting the attributes object (including destruction) shall not affect any previously initialized mutexes. + // After a mutex attributes object has been used to initialize one or more + // mutexes, any function affecting the attributes object + // (including destruction) shall not affect any previously initialized mutexes. status = pthread_mutexattr_destroy(&mutexAttr); if (status != 0) { sif::error << "Mutex: Attribute destroy failed with " << strerror(status) << std::endl; diff --git a/osal/linux/Mutex.h b/osal/linux/Mutex.h index d02d008fe..872ac3ac4 100644 --- a/osal/linux/Mutex.h +++ b/osal/linux/Mutex.h @@ -2,7 +2,11 @@ #define OS_RTEMS_MUTEX_H_ #include + +extern "C" { #include +} + class Mutex : public MutexIF { public: