Index: /trunk/src/VBox/VMM/VMMAll/PDMAllCritSect.cpp
===================================================================
--- /trunk/src/VBox/VMM/VMMAll/PDMAllCritSect.cpp	(revision 31392)
+++ /trunk/src/VBox/VMM/VMMAll/PDMAllCritSect.cpp	(revision 31393)
@@ -36,4 +36,7 @@
 # include <iprt/lockvalidator.h>
 # include <iprt/semaphore.h>
+#endif
+#if defined(IN_RING3) || defined(IN_RING0)
+# include <iprt/thread.h>
 #endif
 
