diff --git a/headers/private/kernel/condition_variable.h b/headers/private/kernel/condition_variable.h index 956b686b9a..0a602e05d6 100644 --- a/headers/private/kernel/condition_variable.h +++ b/headers/private/kernel/condition_variable.h @@ -16,7 +16,7 @@ #include -class ConditionVariable; +struct ConditionVariable; struct ConditionVariableEntry @@ -42,11 +42,11 @@ private: struct thread* fThread; status_t fWaitStatus; - friend class ConditionVariable; + friend struct ConditionVariable; }; -class ConditionVariable : protected HashTableLink { +struct ConditionVariable : protected HashTableLink { public: void Init(const void* object, const char* objectType); @@ -82,8 +82,8 @@ protected: const char* fObjectType; EntryList fEntries; - friend class ConditionVariableEntry; - friend class ConditionVariableHashDefinition; + friend struct ConditionVariableEntry; + friend struct ConditionVariableHashDefinition; }; diff --git a/headers/private/kernel/listeners.h b/headers/private/kernel/listeners.h index 29a642eb9b..b9026155b6 100644 --- a/headers/private/kernel/listeners.h +++ b/headers/private/kernel/listeners.h @@ -11,7 +11,7 @@ #include -class ConditionVariable; +struct ConditionVariable; struct mutex; struct rw_lock; struct thread; diff --git a/headers/private/kernel/scheduling_analysis.h b/headers/private/kernel/scheduling_analysis.h index 429d0dbdf8..c1d7acbce5 100644 --- a/headers/private/kernel/scheduling_analysis.h +++ b/headers/private/kernel/scheduling_analysis.h @@ -9,7 +9,7 @@ #include -class ConditionVariable; +struct ConditionVariable; struct mutex; struct rw_lock;