$OpenBSD$

Index: src/xrEngine/x_ray.cpp
--- src/xrEngine/x_ray.cpp.orig
+++ src/xrEngine/x_ray.cpp
@@ -15,7 +15,7 @@
 #include "std_classes.h"
 #include "GameFont.h"
 #include "xrCDB/ISpatial.h"
-#if !defined(XR_PLATFORM_LINUX)
+#if !defined(XR_PLATFORM_LINUX) && !defined(XR_PLATFORM_FREEBSD) && !defined(XR_PLATFORM_OPENBSD)
 #include "xrSASH.h"
 #endif
 #include "xrServerEntities/smart_cast.h"
@@ -163,7 +163,7 @@ void CApplication::OnEvent(EVENT E, u64 P1, u64 P2)
     {
         if (pInput != nullptr)
             pInput->GrabInput(false);
-#if !defined(XR_PLATFORM_LINUX)
+#if !defined(XR_PLATFORM_LINUX) && !defined(XR_PLATFORM_FREEBSD) && !defined(XR_PLATFORM_OPENBSD)
         g_SASH.EndBenchmark();
 #endif
         SDL_Event quit = { SDL_QUIT };
@@ -478,7 +478,7 @@ int CApplication::Level_ID(pcstr name, pcstr ver, bool
         CLocatorAPI::archive& A = *it;
 #if defined(XR_PLATFORM_WINDOWS)
         if (A.hSrcFile == nullptr)
-#elif defined(XR_PLATFORM_LINUX)
+#elif defined(XR_PLATFORM_LINUX) || defined(XR_PLATFORM_FREEBSD) || defined(XR_PLATFORM_OPENBSD)
         if (A.hSrcFile == 0)
 #endif
         {
