diff options
| author | Ahmad Fatoum <ahmad@a3f.at> | 2018-01-27 14:50:04 +0100 |
|---|---|---|
| committer | Ahmad Fatoum <ahmad@a3f.at> | 2018-01-27 14:53:04 +0100 |
| commit | f955b2255d447d4e6edd7b5f0a01032f443bc7d7 (patch) | |
| tree | 1b6d1a70ce9b5ffebc157c621bd551f718a754dc /src | |
| parent | 2090ad8119fd622f80ff8a8707f416abec1db375 (diff) | |
| download | raylib-f955b2255d447d4e6edd7b5f0a01032f443bc7d7.tar.gz raylib-f955b2255d447d4e6edd7b5f0a01032f443bc7d7.zip | |
GLFW: Fix build error on Linux < v2.6.39
Cherry-pick from upstream glfw/glfw#1196
Found in CPANtesters test of Alien::raylib:
http://www.cpantesters.org/cpan/report/d956d128-0339-11e8-b0d1-b6c4abd39192
Diffstat (limited to 'src')
| -rw-r--r-- | src/external/glfw/src/linux_joystick.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/external/glfw/src/linux_joystick.c b/src/external/glfw/src/linux_joystick.c index d73961fb..da6a1be7 100644 --- a/src/external/glfw/src/linux_joystick.c +++ b/src/external/glfw/src/linux_joystick.c @@ -38,6 +38,10 @@ #include <string.h> #include <unistd.h> +#ifndef SYN_DROPPED // < 2.6.39 kernel headers +#define SYN_DROPPED 3 +#endif + // Apply an EV_KEY event to the specified joystick // static void handleKeyEvent(_GLFWjoystick* js, int code, int value) |
