diff options
author | Christian König <chrissi@zweiundvierzig.(none)> | 2010-05-25 20:52:16 +0200 |
---|---|---|
committer | Christian König <chrissi@zweiundvierzig.(none)> | 2010-05-25 20:52:16 +0200 |
commit | e677334947c9e4bd98d9e3956efe3df49021a272 (patch) | |
tree | a1600f4c95956709dbd7f815495c749c99dbc80b | |
parent | 95680e20f39d6826243c78b775abde09250a3306 (diff) |
Add i2c.h include if I2C_M_RD is not defined.
Also include i2c.h if I2C_M_RD define is not included in i2c-dev.h
-rw-r--r-- | lib/msp430.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/msp430.c b/lib/msp430.c index 7ac3b52..b2afd25 100644 --- a/lib/msp430.c +++ b/lib/msp430.c @@ -17,6 +17,9 @@ #include <fcntl.h> #include <linux/i2c-dev.h> +#ifndef I2C_M_RD +#include <linux/i2c.h> +#endif #include "cec.h" #include "../msp430/cec_state.h" |