Skip to content

Commit

Permalink
xf86: Fix build against recent Linux kernel
Browse files Browse the repository at this point in the history
Recent Linux kernels reworked the linux/input.h header file, which is
now part of the "user-space API". The include guard therefore has an
additional additional _UAPI prefix.

Instead of adding another case to the #ifdef, drop any include guard
checks and instead always undefine the BUS_* definitions on Linux.

Signed-off-by: Thierry Reding <[email protected]>
Reviewed-by: Peter Hutterer <[email protected]>
Signed-off-by: Peter Hutterer <[email protected]>
  • Loading branch information
Thierry Reding authored and whot committed Oct 19, 2012
1 parent 7d89eb4 commit c5396ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/xfree86/common/xf86str.h
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ typedef struct _DriverRec {
*/

/* Tolerate prior #include <linux/input.h> */
#if defined(linux) && defined(_INPUT_H)
#if defined(linux)
#undef BUS_NONE
#undef BUS_PCI
#undef BUS_SBUS
Expand Down

0 comments on commit c5396ec

Please sign in to comment.