From d0b6045d45efa260dedda2918c5eae179791534b Mon Sep 17 00:00:00 2001
From: Simon McVittie <[EMAIL REDACTED]>
Date: Wed, 5 Feb 2025 14:18:38 +0000
Subject: [PATCH] SDL_config_unix.h: Assume all Unix platforms have POSIX
functionality
To the best of my knowledge these SDL features are based on POSIX
function calls, so any platform that calls itself Unix should be able
to provide them.
Signed-off-by: Simon McVittie <smcv@collabora.com>
---
include/SDL2/SDL_config_unix.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/include/SDL2/SDL_config_unix.h b/include/SDL2/SDL_config_unix.h
index 81e3d4c..720bbb2 100644
--- a/include/SDL2/SDL_config_unix.h
+++ b/include/SDL2/SDL_config_unix.h
@@ -193,6 +193,12 @@
#define HAVE_MEMFD_CREATE 1
#endif
+/* In practice these should be available on any POSIX platform */
+#define DYNAPI_NEEDS_DLOPEN 1
+#define SDL_FILESYSTEM_UNIX 1
+#define SDL_LOADSO_DLOPEN 1
+#define SDL_THREAD_PTHREAD 1
+#define SDL_TIMER_UNIX 1
#define SDL_VIDEO_DRIVER_X11 1
#if defined(__LINUX__)