aboutsummaryrefslogtreecommitdiff
path: root/brightness.c
diff options
context:
space:
mode:
Diffstat (limited to 'brightness.c')
-rw-r--r--brightness.c6
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
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -