Index: /trunk/src/VBox/VMM/VMMR0/NEMR0Native-win.cpp
===================================================================
--- /trunk/src/VBox/VMM/VMMR0/NEMR0Native-win.cpp	(revision 91693)
+++ /trunk/src/VBox/VMM/VMMR0/NEMR0Native-win.cpp	(revision 91694)
@@ -81,4 +81,5 @@
  */
 static NTSTATUS (*g_pfnWinHvDepositMemory)(uintptr_t idPartition, size_t cPages, uintptr_t IdealNode, size_t *pcActuallyAdded);
+#endif
 
 RT_C_DECLS_BEGIN
@@ -92,5 +93,4 @@
 decltype(WinHvGetPartitionProperty) *g_pfnWinHvGetPartitionProperty;
 RT_C_DECLS_END
-#endif
 
 /** @name VID.SYS image details.
@@ -158,5 +158,9 @@
 VMMR0_INT_DECL(int)  NEMR0Init(void)
 {
+#ifdef NEM_WIN_USE_HYPERCALLS_FOR_PAGES
     return RTCritSectInit(&g_VidSysCritSect);
+#else
+    return VINF_SUCCESS;
+#endif
 }
 
@@ -167,7 +171,10 @@
 VMMR0_INT_DECL(void) NEMR0Term(void)
 {
+#ifdef NEM_WIN_USE_HYPERCALLS_FOR_PAGES
     RTCritSectDelete(&g_VidSysCritSect);
+#endif
 }
 
+#ifdef NEM_WIN_USE_HYPERCALLS_FOR_PAGES
 
 /**
@@ -243,5 +250,5 @@
     uintptr_t const            offEndNtHdrs  = (uintptr_t)(pNtHdrs + 1) - (uintptr_t)pbImage;
 
-#define CHECK_LOG_RET(a_Expr, a_LogRel) do { \
+# define CHECK_LOG_RET(a_Expr, a_LogRel) do { \
             if (RT_LIKELY(a_Expr)) { /* likely */ } \
             else \
@@ -337,5 +344,5 @@
     //    return;
     //}
-#undef CHECK_LOG_RET
+# undef CHECK_LOG_RET
 }
 
@@ -379,4 +386,6 @@
         LogRel(("NEMR0: Failed to find vid.sys!__ImageBase (%Rrc)\n", rc));
 }
+
+#endif /* NEM_WIN_USE_HYPERCALLS_FOR_PAGES */
 
 
