Patched to compile on Solaris.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 23 Aug 2013 23:34:23 -0400
changeset 76947f965b1a24e0
parent 7693 4907ee4d2883
child 7695 47d12c248988
Patched to compile on Solaris.
src/filesystem/unix/SDL_sysfilesystem.c
     1.1 --- a/src/filesystem/unix/SDL_sysfilesystem.c	Fri Aug 23 21:48:40 2013 -0400
     1.2 +++ b/src/filesystem/unix/SDL_sysfilesystem.c	Fri Aug 23 23:34:23 2013 -0400
     1.3 @@ -97,7 +97,7 @@
     1.4  #elif defined(__SOLARIS__)
     1.5      const char *path = getexecname();
     1.6      if ((path != NULL) && (path[0] == '/')) { /* must be absolute path... */
     1.7 -        retval = SDL_strdup(fullpath);
     1.8 +        retval = SDL_strdup(path);
     1.9          if (!retval) {
    1.10              SDL_OutOfMemory();
    1.11              return NULL;