mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-09-17 18:44:47 +00:00
fs: Follow up to the initial getexecpath() support
- Add missing CMake piece - Fix logic to quiet warning
This commit is contained in:
committed by
Ryan C. Gordon
parent
ea3963f01a
commit
5723590ffc
@@ -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
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user