diff --git a/source/includes/CarlaDefines.h b/source/includes/CarlaDefines.h index c393081c6..04e954592 100644 --- a/source/includes/CarlaDefines.h +++ b/source/includes/CarlaDefines.h @@ -324,5 +324,8 @@ typedef unsigned short int ushort; typedef unsigned int uint; typedef unsigned long int ulong; typedef unsigned long long int ulonglong; +#ifdef _MSC_VER +typedef SSIZE_T ssize_t; +#endif #endif /* CARLA_DEFINES_H_INCLUDED */ diff --git a/source/utils/CarlaMutex.hpp b/source/utils/CarlaMutex.hpp index 8fe6ede0d..dab04e8a5 100644 --- a/source/utils/CarlaMutex.hpp +++ b/source/utils/CarlaMutex.hpp @@ -215,7 +215,9 @@ public: pthread_mutexattr_t mattr; pthread_mutexattr_init(&mattr); + #ifdef __GNUC__ pthread_mutexattr_setprotocol(&mattr, PTHREAD_PRIO_INHERIT); + #endif pthread_mutexattr_settype(&mattr, PTHREAD_MUTEX_NORMAL); pthread_mutex_init(&fMutex, &mattr); pthread_mutexattr_destroy(&mattr);