~ubuntu-branches/ubuntu/trusty/zvbi/trusty

« back to all changes in this revision

Viewing changes to debian/patches/02_FTBFS.diff

  • Committer: Package Import Robot
  • Author(s): Jackson Doak
  • Date: 2013-10-15 06:29:56 UTC
  • mfrom: (1.1.11) (2.1.13 sid)
  • Revision ID: package-import@ubuntu.com-20131015062956-0b9vqh1f8y90f38k
Tags: 0.2.35-2
* QA upload
* Add 06_sizeof_FTBFS.diff. Closes: #726186

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Description: 
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
6
 
 
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
11
 
@@ -34,6 +34,7 @@
12
 
 #include <locale.h>
13
 
 #include <sys/ioctl.h>
14
 
 #include <sys/types.h>
15
 
+#include <sys/stat.h>
16
 
 #include <sys/time.h>
17
 
 #ifdef HAVE_GETOPT_LONG
18
 
 #  include <getopt.h>
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
23
 
@@ -29,6 +29,8 @@
24
 
 #include <errno.h>
25
 
 #include <sys/select.h>
26
 
 #include <sys/ioctl.h>
27
 
+#include <sys/types.h>
28
 
+#include <sys/stat.h>
29
 
 
30
 
 #ifndef HAVE_S64_U64
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
36
 
@@ -42,6 +42,7 @@
37
 
 #include <assert.h>
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 */
42
 
 #include <pthread.h>
43