Patched to compile on Solaris.

Ryan C. Gordon 2013-08-23 23:34:23 -04:00
parent 88cd94a0eb
commit 58a558e326
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ SDL_GetBasePath(void)
#elif defined(__SOLARIS__) #elif defined(__SOLARIS__)
const char *path = getexecname(); const char *path = getexecname();
if ((path != NULL) && (path[0] == '/')) { /* must be absolute path... */ if ((path != NULL) && (path[0] == '/')) { /* must be absolute path... */
retval = SDL_strdup(fullpath); retval = SDL_strdup(path);
if (!retval) { if (!retval) {
SDL_OutOfMemory(); SDL_OutOfMemory();
return NULL; return NULL;