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:
Enrico Weigelt, metux IT consult
2024-06-04 13:26:21 +02:00
parent 06a4edcea3
commit 5f6820549b
2 changed files with 20 additions and 2 deletions

View File

@@ -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>

View File

@@ -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>