mirror of
https://github.com/glfw/glfw.git
synced 2025-10-04 13:46:37 +00:00
Add support for Linux kernels < v2.6.39
Broke build for me on CentOS-6, which sports a 2.6.32 kernel: http://www.cpantesters.org/cpan/report/d956d128-0339-11e8-b0d1-b6c4abd39192 CentOS-6 is supported till 2020-11-30.
This commit is contained in:
parent
ae53cd29ef
commit
600c7ca33e
@ -234,6 +234,7 @@ information on what to include when reporting a bug.
|
||||
- [X11] Bugfix: Latin-1 text read from selections was not converted to UTF-8
|
||||
- [X11] Bugfix: NVidia EGL would segfault if unloaded before closing the display
|
||||
- [Linux] Moved to evdev for joystick input (#906,#1005)
|
||||
- [Linux] Added manual definition of joystick `SYN_DROPPED` to support kernels < v2.6.39 (#1196)
|
||||
- [Linux] Bugfix: Event processing did not detect joystick disconnection (#932)
|
||||
- [Linux] Bugfix: The joystick device path could be truncated (#1025)
|
||||
- [Linux] Bugfix: `glfwInit` would fail if inotify creation failed (#833)
|
||||
|
@ -38,6 +38,11 @@
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#ifndef SYN_DROPPED // < v2.6.39 kernel headers
|
||||
// Workaround for CentOS-6, which is supported till 2020-11-30, but still on v2.6.32
|
||||
#define SYN_DROPPED 3
|
||||
#endif
|
||||
|
||||
// Apply an EV_KEY event to the specified joystick
|
||||
//
|
||||
static void handleKeyEvent(_GLFWjoystick* js, int code, int value)
|
||||
|
Loading…
Reference in New Issue
Block a user