diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2013-07-12 17:56:11 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2013-07-12 17:56:11 +0200 |
commit | ce0b2935286bb38853a42cc6e4f4752d00224ab1 (patch) | |
tree | f772482208bce1ce586e48de38bef652fb30d1cc | |
parent | 44f09b2c4ac51815b8996ff637b78c0a462e5382 (diff) |
fix compile when i2c-utils are installed
-rw-r--r-- | package/v4l-utils/Makefile | 1 | ||||
-rw-r--r-- | package/v4l-utils/patches/patch-utils_rds_rds-saa6588_c | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/package/v4l-utils/Makefile b/package/v4l-utils/Makefile index 6a4e01b3b..f8e1e430f 100644 --- a/package/v4l-utils/Makefile +++ b/package/v4l-utils/Makefile @@ -23,6 +23,7 @@ $(eval $(call PKG_template,V4L_UTILS,v4l-utils,$(PKG_VERSION)-${PKG_RELEASE},${P $(eval $(call PKG_template,LIBV4L,libv4l,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) CONFIGURE_ARGS+= --disable-qv4l2 +TARGET_CPPFLAGS+= -DLINUX_I2C_DEV_H v4l-utils-install: $(INSTALL_DIR) $(IDIR_V4L_UTILS)/usr/bin diff --git a/package/v4l-utils/patches/patch-utils_rds_rds-saa6588_c b/package/v4l-utils/patches/patch-utils_rds_rds-saa6588_c new file mode 100644 index 000000000..ddd779080 --- /dev/null +++ b/package/v4l-utils/patches/patch-utils_rds_rds-saa6588_c @@ -0,0 +1,15 @@ +--- v4l-utils-0.9.3.orig/utils/rds/rds-saa6588.c 2012-05-10 20:10:34.000000000 +0200 ++++ v4l-utils-0.9.3/utils/rds/rds-saa6588.c 2013-07-12 17:53:04.000000000 +0200 +@@ -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; + |