mirror of
https://github.com/X11Libre/xf86-input-joystick.git
synced 2026-03-24 01:34:06 +00:00
fix FTBS on FreeBSD
Work around name clash between linux/input.h and xf86str.h Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-input-joystick/-/merge_requests/7>
This commit is contained in:
@@ -29,6 +29,16 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <linux/input.h>
|
||||
|
||||
/* workaround for name clash between linux/input.h and xf86str.h */
|
||||
#undef BUS_NONE
|
||||
#undef BUS_PCI
|
||||
#undef BUS_SBUS
|
||||
#undef BUS_PLATFORM
|
||||
#undef BUS_USB
|
||||
#undef BUS_last
|
||||
|
||||
#include <xorg-server.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
@@ -37,7 +47,6 @@
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <linux/input.h>
|
||||
|
||||
#include <xf86.h>
|
||||
#include <xf86_OSproc.h>
|
||||
|
||||
@@ -32,6 +32,16 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <linux/joystick.h>
|
||||
|
||||
/* workaround for name clash between joystick.h and xf86str.h */
|
||||
#undef BUS_NONE
|
||||
#undef BUS_PCI
|
||||
#undef BUS_SBUS
|
||||
#undef BUS_PLATFORM
|
||||
#undef BUS_USB
|
||||
#undef BUS_last
|
||||
|
||||
#include <xorg-server.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
@@ -40,7 +50,6 @@
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <linux/joystick.h>
|
||||
|
||||
#include <xf86.h>
|
||||
#include <xf86_OSproc.h>
|
||||
|
||||
Reference in New Issue
Block a user