2
Fix FTBFS due to lack of #include <sys/stat.h>. Without these #includes,
3
we get a link time failure due to undefined S_ISCHR.
4
Author: Alex Chiang <achiang@canonical.com>
5
Bug: https://sourceforge.net/tracker/?func=detail&aid=3105671&group_id=2599&atid=102599
7
Index: zvbi-0.2.33/contrib/ntsc-cc.c
8
===================================================================
9
--- zvbi-0.2.33.orig/contrib/ntsc-cc.c 2010-11-09 09:22:16.000000000 +0100
10
+++ zvbi-0.2.33/contrib/ntsc-cc.c 2010-11-09 09:22:55.000000000 +0100
13
#include <sys/ioctl.h>
14
#include <sys/types.h>
15
+#include <sys/stat.h>
17
#ifdef HAVE_GETOPT_LONG
19
Index: zvbi-0.2.33/src/io-dvb.c
20
===================================================================
21
--- zvbi-0.2.33.orig/src/io-dvb.c 2010-11-09 09:22:16.000000000 +0100
22
+++ zvbi-0.2.33/src/io-dvb.c 2010-11-09 09:22:55.000000000 +0100
25
#include <sys/select.h>
26
#include <sys/ioctl.h>
27
+#include <sys/types.h>
28
+#include <sys/stat.h>
31
/* Linux 2.6.x asm/types.h defines __s64 and __u64 only
32
Index: zvbi-0.2.33/src/io-v4l.c
33
===================================================================
34
--- zvbi-0.2.33.orig/src/io-v4l.c 2010-11-09 09:22:16.000000000 +0100
35
+++ zvbi-0.2.33/src/io-v4l.c 2010-11-09 09:22:55.000000000 +0100
38
#include <sys/time.h> /* timeval */
39
#include <sys/types.h> /* fd_set, uid_t */
40
+#include <sys/stat.h> /* S_ISCHR */
41
#include <sys/ioctl.h> /* for (_)videodev.h */