diff options
Diffstat (limited to 'src/accelerometer/accelerometer.c')
-rw-r--r-- | src/accelerometer/accelerometer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/accelerometer/accelerometer.c b/src/accelerometer/accelerometer.c index 386775b619..beed53c6d3 100644 --- a/src/accelerometer/accelerometer.c +++ b/src/accelerometer/accelerometer.c @@ -50,13 +50,17 @@ #include <math.h> #include <sys/types.h> #include <sys/stat.h> +#include <fcntl.h> #include <stdlib.h> #include <unistd.h> #include <getopt.h> #include <limits.h> #include <linux/limits.h> #include <linux/input.h> + +#ifdef __UCLIBC__ #include <linux/fcntl.h> +#endif #include "libudev.h" #include "libudev-private.h" |