Message ID | alpine.LNX.2.00.1107261422430.9258@pervalidus.fredlwm.net (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
diff -urN rds.old/Makefile rds/Makefile --- rds.old/Makefile 2011-07-17 13:06:39.000000000 -0300 +++ rds/Makefile 2011-07-26 15:15:31.000000000 -0300 @@ -1,5 +1,7 @@ TARGETS = rds-saa6588 +override CPPFLAGS += -DLINUX_I2C_DEV_H + all: $(TARGETS) -include *.d diff -urN rds.old/rds-saa6588.c rds/rds-saa6588.c --- rds.old/rds-saa6588.c 2011-07-17 13:06:39.000000000 -0300 +++ rds/rds-saa6588.c 2011-07-26 15:16:13.000000000 -0300 @@ -12,8 +12,12 @@ #include <errno.h> #include <sys/ioctl.h> #include <linux/types.h> +#ifdef LINUX_I2C_DEV_H +#include <linux/i2c-dev.h> +#else #include <linux/i2c.h> #include <linux/i2c-dev.h> +#endif int debug;