diff --git a/libdvbv5-Add-missing-includes.patch b/libdvbv5-Add-missing-includes.patch new file mode 100644 index 0000000..db7915e --- /dev/null +++ b/libdvbv5-Add-missing-includes.patch @@ -0,0 +1,41 @@ +From 9475926b6e50f60ac56175915cf82dd4f97d00ae Mon Sep 17 00:00:00 2001 +From: Gregor Jasny +Date: Tue, 15 May 2012 21:24:51 +0200 +Subject: [PATCH 12/12] libdvbv5: Add missing includes + +Signed-off-by: Gregor Jasny +--- + utils/dvb/dvb-v5-std.h | 1 + + utils/dvb/dvb-v5.h | 3 +++ + 2 files changed, 4 insertions(+) + +diff --git a/utils/dvb/dvb-v5-std.h b/utils/dvb/dvb-v5-std.h +index 6403ad2..166bf55 100644 +--- a/utils/dvb/dvb-v5-std.h ++++ b/utils/dvb/dvb-v5-std.h +@@ -20,6 +20,7 @@ + * http://linuxtv.org/downloads/v4l-dvb-apis/FE_GET_SET_PROPERTY.html + */ + ++#include + #include "dvb_frontend.h" + + const unsigned int sys_dvbt_props[] = { +diff --git a/utils/dvb/dvb-v5.h b/utils/dvb/dvb-v5.h +index 6ba6730..67cd725 100644 +--- a/utils/dvb/dvb-v5.h ++++ b/utils/dvb/dvb-v5.h +@@ -3,7 +3,10 @@ + */ + #ifndef _DVB_V5_CONSTS_H + #define _DVB_V5_CONSTS_H ++ ++#include + #include "dvb_frontend.h" ++ + struct fe_caps_name { + unsigned idx; + char *name; +-- +1.7.10 + diff --git a/v4l-utils.changes b/v4l-utils.changes index 03ee64d..ad13d88 100644 --- a/v4l-utils.changes +++ b/v4l-utils.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed May 30 18:24:41 UTC 2012 - asterios.dramis@gmail.com + +- Added a patch (libdvbv5-Add-missing-includes.patch) in order to fix + compilation due to missing includes. + ------------------------------------------------------------------- Sun Apr 22 17:15:15 UTC 2012 - asterios.dramis@gmail.com diff --git a/v4l-utils.spec b/v4l-utils.spec index ec6efa3..d431adb 100644 --- a/v4l-utils.spec +++ b/v4l-utils.spec @@ -28,6 +28,8 @@ Source0: http://linuxtv.org/downloads/v4l-utils/%{name}-%{version}.tar.bz Source100: baselibs.conf # PATCH-FIX-OPENSUSE disable_rds_compilation.patch asterios.dramis@gmail.com -- Disable compilation of utils/rds (it isn't installed anyway) as it fails to compile with i2c-dev.h from i2c-tools (needs the one from linux-glibc-devel) Patch0: disable_rds_compilation.patch +# PATCH-FIX-UPSTREAM libdvbv5-Add-missing-includes.patch asterios.dramis@gmail.com -- Fix compilation due to missing includes (taken from Fedora) +Patch1: libdvbv5-Add-missing-includes.patch # Only needed to patch broken images in the upstream tarball BuildRequires: ImageMagick BuildRequires: kernel-headers @@ -139,6 +141,7 @@ qv4l2 is a test control and streaming test application for video4linux. %prep %setup -q %patch0 +%patch1 -p1 %build make CFLAGS="%{optflags} -fno-strict-aliasing" CXXFLAGS="%{optflags}" %{?_smp_mflags}