Browse Source

Fixed build error (thanks @sezero!)

Sam Lantinga 11 months ago
parent
commit
ac5a61cd60
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/joystick/linux/SDL_sysjoystick.c

+ 2 - 0
src/joystick/linux/SDL_sysjoystick.c

@@ -912,7 +912,9 @@ static void LINUX_ScanSteamVirtualGamepads(void)
     int num_virtual_gamepads = 0;
     int virtual_gamepad_slot;
     VirtualGamepadEntry *virtual_gamepads = NULL;
+#ifdef SDL_USE_LIBUDEV
     int class;
+#endif
 
     count = scandir("/dev/input", &entries, filter_entries, NULL);
     for (i = 0; i < count; ++i) {