| Summary: | [PATCH] Build fix for joystick/linux/SDL_sysjoystick.c | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Mark de Wever <koraq> |
| Component: | joystick | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Attachments: | Patch fixing compilation | ||
|
Description
Mark de Wever
2013-02-23 12:47:51 UTC
That's interesting. Why would it need to be moved up? Have a look at the original file [1] line 54: #ifdef HAVE_LIBUDEV_H That macro is not defined on my system so the SYN_DROPPED hunk is removed by the preprocessor. Since #include <linux/joystick.h> includes #include <linux/input.h> (where SYN_DROPPED will be defined in newer kernels), the new location should work on both newer and older kernels. [1] http://hg.libsdl.org/SDL/file/424a6a791947/src/joystick/linux/SDL_sysjoystick.c PS: the '#include <unistd.h>' on line 60 is a duplicate of the one on line 32. Fixed, thanks! http://hg.libsdl.org/SDL/rev/a3d4fd1ba315 |