fs: Follow up to the initial getexecpath() support

- Add missing CMake piece
- Fix logic to quiet warning
This commit is contained in:
Brad Smith
2026-09-11 02:09:13 -04:00
committed by Ryan C. Gordon
parent ea3963f01a
commit 5723590ffc
2 changed files with 2 additions and 1 deletions

View File

@@ -73,6 +73,7 @@
#cmakedefine HAVE_DLOPEN 1
#cmakedefine HAVE_MALLOC 1
#cmakedefine HAVE_FDATASYNC 1
#cmakedefine HAVE_GETEXECPATH 1
#cmakedefine HAVE_GETENV 1
#cmakedefine HAVE_GETHOSTNAME 1
#cmakedefine HAVE_SETENV 1

View File

@@ -71,7 +71,7 @@ static char *readSymLink(const char *path)
return NULL;
}
#ifdef SDL_PLATFORM_OPENBSD
#if defined(SDL_PLATFORM_OPENBSD) && !defined(HAVE_GETEXECPATH)
static char *search_path_for_binary(const char *bin)
{
const char *envr_real = SDL_getenv("PATH");