]> source.dussan.org Git - tigervnc.git/commitdiff
Include class keyword for friend declaration
authorPierre Ossman <ossman@cendio.se>
Tue, 8 Dec 2015 14:27:24 +0000 (15:27 +0100)
committerPierre Ossman <ossman@cendio.se>
Tue, 8 Dec 2015 14:27:24 +0000 (15:27 +0100)
Only C++11 allows omitting the class keyword, so include it so
the code compiles with older compilers.

common/os/Mutex.h

index 2a54b20544f90d4d49e18ae7e01491fae9977ffd..63c7e0cc02e6c66d849f810f81c7dedb76307f38 100644 (file)
@@ -31,7 +31,7 @@ namespace os {
     void unlock();
 
   private:
-    friend Condition;
+    friend class Condition;
 
     void* systemMutex;
   };