From f69eccddfb59356166a0f617363dbacf87da393c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=81vels=20Nadto=C4=8Dajevs?= <7645683+bruvzg@users.noreply.github.com> Date: Wed, 25 Jun 2025 08:11:09 +0300 Subject: [PATCH] [SDL] Fix missing header build error on some Linux systems. --- thirdparty/sdl/joystick/SDL_sysjoystick.h | 2 ++ thirdparty/sdl/patches/0003-std-include.patch | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 thirdparty/sdl/patches/0003-std-include.patch diff --git a/thirdparty/sdl/joystick/SDL_sysjoystick.h b/thirdparty/sdl/joystick/SDL_sysjoystick.h index 041ebc3b509..9b6ea65e9c1 100644 --- a/thirdparty/sdl/joystick/SDL_sysjoystick.h +++ b/thirdparty/sdl/joystick/SDL_sysjoystick.h @@ -26,6 +26,8 @@ // This is the system specific header for the SDL joystick API #include "SDL_joystick_c.h" +#include + // Set up for C function definitions, even when using C++ #ifdef __cplusplus extern "C" { diff --git a/thirdparty/sdl/patches/0003-std-include.patch b/thirdparty/sdl/patches/0003-std-include.patch new file mode 100644 index 00000000000..273cdabc8f5 --- /dev/null +++ b/thirdparty/sdl/patches/0003-std-include.patch @@ -0,0 +1,13 @@ +diff --git a/thirdparty/sdl/joystick/SDL_sysjoystick.h b/thirdparty/sdl/joystick/SDL_sysjoystick.h +index 041ebc3b50..9b6ea65e9c 100644 +--- a/thirdparty/sdl/joystick/SDL_sysjoystick.h ++++ b/thirdparty/sdl/joystick/SDL_sysjoystick.h +@@ -26,6 +26,8 @@ + // This is the system specific header for the SDL joystick API + #include "SDL_joystick_c.h" + ++#include ++ + // Set up for C function definitions, even when using C++ + #ifdef __cplusplus + extern "C" {