From a4905da036f0daa8c9cf02c431b7018509b24c2d Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Tue, 14 Dec 2021 16:33:53 +0600 Subject: [PATCH] Fix compilation on macOS --- src/qt/sdl_joystick.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qt/sdl_joystick.cpp b/src/qt/sdl_joystick.cpp index 13adfba44..5a8100ee5 100644 --- a/src/qt/sdl_joystick.cpp +++ b/src/qt/sdl_joystick.cpp @@ -12,6 +12,8 @@ plat_joystick_t plat_joystick_state[MAX_PLAT_JOYSTICKS]; static SDL_Joystick *sdl_joy[MAX_PLAT_JOYSTICKS]; } +#include + void joystick_init() { if (SDL_InitSubSystem(SDL_INIT_JOYSTICK) != 0) { return;