filesystem: Patched to compile on QNX.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 17 Aug 2017 03:22:44 -0400
changeset 1131167c8d5f92a29
parent 11310 18bc7f7649d4
child 11312 ee47dce3b10c
filesystem: Patched to compile on QNX.
src/filesystem/unix/SDL_sysfilesystem.c
     1.1 --- a/src/filesystem/unix/SDL_sysfilesystem.c	Thu Aug 17 02:58:46 2017 -0400
     1.2 +++ b/src/filesystem/unix/SDL_sysfilesystem.c	Thu Aug 17 03:22:44 2017 -0400
     1.3 @@ -41,6 +41,7 @@
     1.4  #include "SDL_error.h"
     1.5  #include "SDL_stdinc.h"
     1.6  #include "SDL_filesystem.h"
     1.7 +#include "SDL_rwops.h"
     1.8  
     1.9  /* QNX's /proc/self/exefile is a text file and not a symlink. */
    1.10  #if !defined(__QNXNTO__)
    1.11 @@ -125,6 +126,9 @@
    1.12  
    1.13      /* is a Linux-style /proc filesystem available? */
    1.14      if (!retval && (access("/proc", F_OK) == 0)) {
    1.15 +        /* !!! FIXME: after 2.0.6 ships, let's delete this code and just
    1.16 +                      use the /proc/%llu version. There's no reason to have
    1.17 +                      two copies of this plus all the #ifdefs. --ryan. */
    1.18  #if defined(__FREEBSD__)
    1.19          retval = readSymLink("/proc/curproc/file");
    1.20  #elif defined(__NETBSD__)