Index: /trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
===================================================================
--- /trunk/src/VBox/Main/src-client/ConsoleImpl.cpp	(revision 40714)
+++ /trunk/src/VBox/Main/src-client/ConsoleImpl.cpp	(revision 40715)
@@ -5168,4 +5168,5 @@
                     vrc = PDMR3AsyncCompletionBwMgrSetMaxForFile(ptrVM, Utf8Str(strName).c_str(),
                                                                  cMax * _1M);
+#ifdef VBOX_WITH_NETSHAPER
                 else if (enmType == BandwidthGroupType_Network)
                     vrc = PDMR3NsBwGroupSetLimit(ptrVM, Utf8Str(strName).c_str(),
@@ -5173,4 +5174,5 @@
                 else
                     rc = E_NOTIMPL;
+#endif /* VBOX_WITH_NETSHAPER */
                 AssertRC(vrc);
             }
