mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-19 21:13:05 +01:00
Fix undefined macro check in linux.c
This commit is contained in:
@@ -62,7 +62,7 @@ void platform_get_exe_path(utf8 *outPath, size_t outSize)
|
||||
log_fatal("failed to read /proc/self/exe");
|
||||
}
|
||||
exePath[bytesRead - 1] = '\0';
|
||||
#elif __FREEBSD__
|
||||
#elif defined(__FREEBSD__)
|
||||
size_t exeLen = sizeof(exePath);
|
||||
const int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, -1 };
|
||||
if (sysctl(mib, 4, exePath, &exeLen, NULL, 0) == -1) {
|
||||
|
||||
Reference in New Issue
Block a user