wok-6.x diff zvbi/stuff/fix-includes.patch @ rev 13585

sbxkb: add LDFLAGS
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Nov 06 12:55:04 2012 +0100 (2012-11-06)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/zvbi/stuff/fix-includes.patch	Tue Nov 06 12:55:04 2012 +0100
     1.3 @@ -0,0 +1,36 @@
     1.4 +Add proper #includes so that we do not get undef errors to S_ISCHR
     1.5 +during linking.
     1.6 +
     1.7 +Signed-off-by: Alex Chiang <achiang@canonical.com>
     1.8 +---
     1.9 +--- zvbi-0.2.33.orig/src/io-dvb.c
    1.10 ++++ zvbi-0.2.33/src/io-dvb.c
    1.11 +@@ -29,6 +29,8 @@
    1.12 + #include <errno.h>
    1.13 + #include <sys/select.h>
    1.14 + #include <sys/ioctl.h>
    1.15 ++#include <sys/types.h>
    1.16 ++#include <sys/stat.h>
    1.17 + 
    1.18 + #ifndef HAVE_S64_U64
    1.19 +   /* Linux 2.6.x asm/types.h defines __s64 and __u64 only
    1.20 +--- zvbi-0.2.33.orig/src/io-v4l.c
    1.21 ++++ zvbi-0.2.33/src/io-v4l.c
    1.22 +@@ -42,6 +42,7 @@ static const char rcsid [] =
    1.23 + #include <assert.h>
    1.24 + #include <sys/time.h>		/* timeval */
    1.25 + #include <sys/types.h>		/* fd_set, uid_t */
    1.26 ++#include <sys/stat.h>		/* S_ISCHR */
    1.27 + #include <sys/ioctl.h>		/* for (_)videodev.h */
    1.28 + #include <pthread.h>
    1.29 + 
    1.30 +--- zvbi-0.2.33.orig/contrib/ntsc-cc.c
    1.31 ++++ zvbi-0.2.33/contrib/ntsc-cc.c
    1.32 +@@ -34,6 +34,7 @@
    1.33 + #include <locale.h>
    1.34 + #include <sys/ioctl.h>
    1.35 + #include <sys/types.h>
    1.36 ++#include <sys/stat.h>
    1.37 + #include <sys/time.h>
    1.38 + #ifdef HAVE_GETOPT_LONG
    1.39 + #  include <getopt.h>