From 00905c98be9fa577907f8c52b45a1dd022aa7a1a Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 17 Aug 2017 03:22:44 -0400 Subject: [PATCH] filesystem: Patched to compile on QNX. --- src/filesystem/unix/SDL_sysfilesystem.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/filesystem/unix/SDL_sysfilesystem.c b/src/filesystem/unix/SDL_sysfilesystem.c index 531d4f8bdc324..0f8c3ba2788c1 100644 --- a/src/filesystem/unix/SDL_sysfilesystem.c +++ b/src/filesystem/unix/SDL_sysfilesystem.c @@ -41,6 +41,7 @@ #include "SDL_error.h" #include "SDL_stdinc.h" #include "SDL_filesystem.h" +#include "SDL_rwops.h" /* QNX's /proc/self/exefile is a text file and not a symlink. */ #if !defined(__QNXNTO__) @@ -125,6 +126,9 @@ SDL_GetBasePath(void) /* is a Linux-style /proc filesystem available? */ if (!retval && (access("/proc", F_OK) == 0)) { + /* !!! FIXME: after 2.0.6 ships, let's delete this code and just + use the /proc/%llu version. There's no reason to have + two copies of this plus all the #ifdefs. --ryan. */ #if defined(__FREEBSD__) retval = readSymLink("/proc/curproc/file"); #elif defined(__NETBSD__)