brightness: fix openSUSE build

This commit is contained in:
Přemysl Eric Janouch 2016-03-13 01:45:36 +01:00
parent bbe00e7cb7
commit 5bc01923ee
1 changed files with 5 additions and 1 deletions

View File

@ -33,8 +33,12 @@
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <dirent.h> #include <dirent.h>
#include <linux/i2c.h>
#include <linux/i2c-dev.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
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -