SDL: Fix use of _LARGEFILE64_SOURCE

From 49a8b16ffd4eb99254bb24ba9af67524c0ef35b1 Mon Sep 17 00:00:00 2001
From: Elad Lahav <[EMAIL REDACTED]>
Date: Sat, 7 Jan 2023 07:51:50 -0500
Subject: [PATCH] Fix use of _LARGEFILE64_SOURCE

---
 src/SDL_internal.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/SDL_internal.h b/src/SDL_internal.h
index ca91f2346e72..9817c0b703c7 100644
--- a/src/SDL_internal.h
+++ b/src/SDL_internal.h
@@ -28,7 +28,14 @@
 
 /* Need this so Linux systems define fseek64o, ftell64o and off64_t */
 #ifndef _LARGEFILE64_SOURCE
+#ifndef __QNX__
 #define _LARGEFILE64_SOURCE
+#else
+/* QNX expects either _LARGEFILE64_SOURCE to be defined as a value or not at
+   all.
+   As the comment above says _LARGEFILE64_SOURCE is for Linux, should it be
+   defined only if __LINUX__ is defined? */
+#endif
 #endif
 
 /* This is for a variable-length array at the end of a struct: