Source: zvbi
Version: 0.2.33-2
Tags: patch

zvbi references S_ISCHR in several source files, but they do not
#include <sys/stat.h>. This is not a significant issue at the
moment, but with the Wheezy toolchain will cause a FTBFS.

Below patch fixes the issue. Note that upstream bug has already
been filed and patch submitted.
---
Description: 
 Fix FTBFS due to lack of #include <sys/stat.h>. Without these #includes,
 we get a link time failure due to undefined S_ISCHR.
Author: Alex Chiang <achi...@canonical.com>
Bug: 
https://sourceforge.net/tracker/?func=detail&aid=3105671&group_id=2599&atid=102599

--- zvbi-0.2.33.orig/src/io-dvb.c
+++ zvbi-0.2.33/src/io-dvb.c
@@ -29,6 +29,8 @@
 #include <errno.h>
 #include <sys/select.h>
 #include <sys/ioctl.h>
+#include <sys/types.h>
+#include <sys/stat.h>
 
 #ifndef HAVE_S64_U64
   /* Linux 2.6.x asm/types.h defines __s64 and __u64 only
--- zvbi-0.2.33.orig/src/io-v4l.c
+++ zvbi-0.2.33/src/io-v4l.c
@@ -42,6 +42,7 @@ static const char rcsid [] =
 #include <assert.h>
 #include <sys/time.h>          /* timeval */
 #include <sys/types.h>         /* fd_set, uid_t */
+#include <sys/stat.h>          /* S_ISCHR */
 #include <sys/ioctl.h>         /* for (_)videodev.h */
 #include <pthread.h>
 
--- zvbi-0.2.33.orig/contrib/ntsc-cc.c
+++ zvbi-0.2.33/contrib/ntsc-cc.c
@@ -34,6 +34,7 @@
 #include <locale.h>
 #include <sys/ioctl.h>
 #include <sys/types.h>
+#include <sys/stat.h>
 #include <sys/time.h>
 #ifdef HAVE_GETOPT_LONG
 #  include <getopt.h>



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to