$OpenBSD$

Index: src/xrEngine/stdafx.h
--- src/xrEngine/stdafx.h.orig
+++ src/xrEngine/stdafx.h
@@ -32,8 +32,10 @@
 
 extern ENGINE_API CInifile* pGameIni;
 
+#ifdef XR_PLATFORM_WINDOWS
 #pragma comment(lib, "winmm.lib")
 #pragma comment(lib, "dxguid.lib")
+#endif
 // XXX: move to script engine headers
 #ifndef DEBUG
 #define LUABIND_NO_ERROR_CHECKING
