$OpenBSD: patch-src_main_cpp,v 1.1.1.1 2013/03/13 15:49:53 bcallah Exp $
--- src/main.cpp.orig	Wed Mar  6 22:20:14 2013
+++ src/main.cpp	Wed Mar  6 22:20:34 2013
@@ -483,7 +483,7 @@ int main(int argc, char *argv[])
         // Now the program should be in app/Contents
         path.append("/Resources/");
         chdir(path.c_str());
-#elif (defined(__linux__) || defined(__FreeBSD__)) && !defined(RELEASE_BUILD)
+#elif (defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__)) && !defined(RELEASE_BUILD)
         // Look for data files in DATADIR only if they are not available in the current directory.
         if(std::ifstream("dat/config/settings.lua") == NULL) {
             if(chdir(PKG_DATADIR) != 0) {
