diff options
| author | David Carlier | 2017-07-16 10:52:30 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2017-07-30 21:11:02 +0200 |
| commit | 14392c979861b3cca5e5979b5baa9453ebf5473d (patch) | |
| tree | c1614bd2c5487d9a19cbfa32fb6d6e0bbcb2b1ce /drivers/unix/os_unix.cpp | |
| parent | 577c8714c717046a95e1347f59f5184e4bdd1885 (diff) | |
| download | godot-14392c979861b3cca5e5979b5baa9453ebf5473d.tar.gz godot-14392c979861b3cca5e5979b5baa9453ebf5473d.tar.zst godot-14392c979861b3cca5e5979b5baa9453ebf5473d.zip | |
Diffstat (limited to 'drivers/unix/os_unix.cpp')
| -rw-r--r-- | drivers/unix/os_unix.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/unix/os_unix.cpp b/drivers/unix/os_unix.cpp index c39ffde80..b4e3cfc13 100644 --- a/drivers/unix/os_unix.cpp +++ b/drivers/unix/os_unix.cpp @@ -49,7 +49,7 @@ #include <mach-o/dyld.h> #endif -#ifdef __FreeBSD__ +#if defined(__FreeBSD__) || defined(__OpenBSD__) #include <sys/param.h> #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); |
