From 306518730078c0e4d8beb6d5d9afb90437de437f Mon Sep 17 00:00:00 2001 From: hondres Date: Mon, 15 Feb 2016 15:09:48 +0100 Subject: include libudev only on udev builds --- platform/x11/joystick_linux.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform/x11/joystick_linux.cpp b/platform/x11/joystick_linux.cpp index 9fd19a767e..9a52c4ff36 100644 --- a/platform/x11/joystick_linux.cpp +++ b/platform/x11/joystick_linux.cpp @@ -33,11 +33,14 @@ #include "joystick_linux.h" #include -#include #include #include #include +#ifdef UDEV_ENABLED +#include +#endif + #define LONG_BITS (sizeof(long) * 8) #define test_bit(nr, addr) (((1UL << ((nr) % LONG_BITS)) & ((addr)[(nr) / LONG_BITS])) != 0) #define NBITS(x) ((((x)-1)/LONG_BITS)+1) -- cgit v1.2.3