diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-04 13:17:38 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-04 13:17:38 +0100 |
commit | 78754950ffa3aaba0f48b1ca1d505caa4a3dfbfa (patch) | |
tree | 285997f09f32d26633ba2beffd30c972a4ec87a2 /media-libs/libsdl2/files | |
parent | bf99f8024d68382f76665735c70ae912331bc2ca (diff) |
gentoo auto-resync : 04:10:2022 - 13:17:38
Diffstat (limited to 'media-libs/libsdl2/files')
-rw-r--r-- | media-libs/libsdl2/files/libsdl2-2.24.0-fix-build-without-joystick.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/media-libs/libsdl2/files/libsdl2-2.24.0-fix-build-without-joystick.patch b/media-libs/libsdl2/files/libsdl2-2.24.0-fix-build-without-joystick.patch new file mode 100644 index 000000000000..0370f66ef8c9 --- /dev/null +++ b/media-libs/libsdl2/files/libsdl2-2.24.0-fix-build-without-joystick.patch @@ -0,0 +1,32 @@ +# https://github.com/libsdl-org/SDL/commit/71fb91f7e43c5f046a037bf5ca59214d93fe2d51 +From 71fb91f7e43c5f046a037bf5ca59214d93fe2d51 Mon Sep 17 00:00:00 2001 +From: Cameron Gutman <aicommander@gmail.com> +Date: Mon, 26 Sep 2022 21:38:09 -0500 +Subject: [PATCH] evdev: Fix build with libudev and joystick subsystem disabled + +--- + src/core/linux/SDL_evdev_capabilities.h | 4 ---- + 1 file changed, 4 deletions(-) + +diff --git a/src/core/linux/SDL_evdev_capabilities.h b/src/core/linux/SDL_evdev_capabilities.h +index 26fa7400485b..990ebe01b872 100644 +--- a/src/core/linux/SDL_evdev_capabilities.h ++++ b/src/core/linux/SDL_evdev_capabilities.h +@@ -25,8 +25,6 @@ + #ifndef SDL_evdev_capabilities_h_ + #define SDL_evdev_capabilities_h_ + +-#if HAVE_LIBUDEV_H || defined(SDL_JOYSTICK_LINUX) +- + #include <linux/input.h> + + /* A device can be any combination of these classes */ +@@ -53,8 +51,6 @@ extern int SDL_EVDEV_GuessDeviceClass(unsigned long bitmask_ev[NBITS(EV_MAX)], + unsigned long bitmask_key[NBITS(KEY_MAX)], + unsigned long bitmask_rel[NBITS(REL_MAX)]); + +-#endif /* HAVE_LIBUDEV_H || defined(SDL_JOYSTICK_LINUX) */ +- + #endif /* SDL_evdev_capabilities_h_ */ + + /* vi: set ts=4 sw=4 expandtab: */ |