From: Pierre Ossman Date: Tue, 8 Dec 2015 14:27:24 +0000 (+0100) Subject: Include class keyword for friend declaration X-Git-Tag: v1.6.90~85 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=769931efdfc815160c0e6714ab0860ae3702adf1;p=tigervnc.git Include class keyword for friend declaration Only C++11 allows omitting the class keyword, so include it so the code compiles with older compilers. --- diff --git a/common/os/Mutex.h b/common/os/Mutex.h index 2a54b205..63c7e0cc 100644 --- a/common/os/Mutex.h +++ b/common/os/Mutex.h @@ -31,7 +31,7 @@ namespace os { void unlock(); private: - friend Condition; + friend class Condition; void* systemMutex; };