$OpenBSD$

Index: src/xrCore/xrCore.cpp
--- src/xrCore/xrCore.cpp.orig
+++ src/xrCore/xrCore.cpp
@@ -7,7 +7,7 @@
 #include <mmsystem.h>
 #include <objbase.h>
 #pragma comment(lib, "winmm.lib")
-#elif defined(XR_PLATFORM_LINUX)
+#elif defined(XR_PLATFORM_LINUX) || defined(XR_PLATFORM_FREEBSD) || defined(XR_PLATFORM_OPENBSD)
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <pwd.h>
@@ -291,7 +291,7 @@ void xrCore::Initialize(pcstr _ApplicationName, pcstr 
 
         DWORD sz_comp = sizeof(CompName);
         GetComputerName(CompName, &sz_comp);
-#elif defined(XR_PLATFORM_LINUX)
+#elif defined(XR_PLATFORM_LINUX) || defined(XR_PLATFORM_FREEBSD) || defined(XR_PLATFORM_OPENBSD)
         uid_t uid = geteuid();
         struct passwd *pw = getpwuid(uid);
         if(pw)
@@ -355,7 +355,7 @@ void xrCore::Initialize(pcstr _ApplicationName, pcstr 
         EFS._initialize();
 #ifdef DEBUG
 #ifndef _EDITOR
-#ifndef XR_PLATFORM_LINUX // FIXME!!!
+#ifndef XR_PLATFORM_LINUX || !defined(XR_PLATFORM_FREEBSD) || !defined(XR_PLATFORM_OPENBSD) // FIXME!!!
         Msg("Process heap 0x%08x", GetProcessHeap());
 #endif
 #endif
