diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2016-03-13 01:45:36 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2016-03-13 01:45:36 +0100 |
commit | 5bc01923ee68e5bf65fb4cacb2b75a2ee6a33539 (patch) | |
tree | a7ca1d517004f991bc890e2cbe3c2bd9c8530184 | |
parent | bbe00e7cb7320fdf793687fe3a4b3a6926d6133b (diff) | |
download | desktop-tools-5bc01923ee68e5bf65fb4cacb2b75a2ee6a33539.tar.gz desktop-tools-5bc01923ee68e5bf65fb4cacb2b75a2ee6a33539.tar.xz desktop-tools-5bc01923ee68e5bf65fb4cacb2b75a2ee6a33539.zip |
brightness: fix openSUSE build
-rw-r--r-- | brightness.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/brightness.c b/brightness.c index ac79563..3da1839 100644 --- a/brightness.c +++ b/brightness.c @@ -33,8 +33,12 @@ #include <sys/ioctl.h> #include <dirent.h> -#include <linux/i2c.h> #include <linux/i2c-dev.h> +#ifndef I2C_FUNC_I2C +// Fuck you, openSUSE, for fucking up the previous file, see e.g. +// https://github.com/solettaproject/soletta/commit/427f47f +#include <linux/i2c.h> +#endif // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |