From 14392c979861b3cca5e5979b5baa9453ebf5473d Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sun, 16 Jul 2017 10:52:30 +0100 Subject: [PATCH] get_executable_path slight change to make it work under OpenBSD (cherry picked from commit df87ad14d0be851ecdc02e592c3593b696762d26) --- drivers/unix/os_unix.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/unix/os_unix.cpp b/drivers/unix/os_unix.cpp index c39ffde800..b4e3cfc131 100644 --- a/drivers/unix/os_unix.cpp +++ b/drivers/unix/os_unix.cpp @@ -49,7 +49,7 @@ #include #endif -#ifdef __FreeBSD__ +#if defined(__FreeBSD__) || defined(__OpenBSD__) #include #endif #include "globals.h" @@ -499,7 +499,7 @@ String OS_Unix::get_executable_path() const { return OS::get_executable_path(); } return b; -#elif defined(__FreeBSD__) +#elif defined(__FreeBSD__) || defined(__OpenBSD__) char resolved_path[MAXPATHLEN]; realpath(OS::get_executable_path().utf8().get_data(), resolved_path);