wok view zvbi/stuff/fix-includes.patch @ rev 24284

updated sleuthkit and sleuthkit-dev (4.8.0 -> 4.11.1)
author Hans-G?nter Theisgen
date Thu Jan 13 07:54:46 2022 +0100 (2022-01-13)
parents
children
line source
1 Add proper #includes so that we do not get undef errors to S_ISCHR
2 during linking.
4 Signed-off-by: Alex Chiang <achiang@canonical.com>
5 ---
6 --- zvbi-0.2.33.orig/src/io-dvb.c
7 +++ zvbi-0.2.33/src/io-dvb.c
8 @@ -29,6 +29,8 @@
9 #include <errno.h>
10 #include <sys/select.h>
11 #include <sys/ioctl.h>
12 +#include <sys/types.h>
13 +#include <sys/stat.h>
15 #ifndef HAVE_S64_U64
16 /* Linux 2.6.x asm/types.h defines __s64 and __u64 only
17 --- zvbi-0.2.33.orig/src/io-v4l.c
18 +++ zvbi-0.2.33/src/io-v4l.c
19 @@ -42,6 +42,7 @@ static const char rcsid [] =
20 #include <assert.h>
21 #include <sys/time.h> /* timeval */
22 #include <sys/types.h> /* fd_set, uid_t */
23 +#include <sys/stat.h> /* S_ISCHR */
24 #include <sys/ioctl.h> /* for (_)videodev.h */
25 #include <pthread.h>
27 --- zvbi-0.2.33.orig/contrib/ntsc-cc.c
28 +++ zvbi-0.2.33/contrib/ntsc-cc.c
29 @@ -34,6 +34,7 @@
30 #include <locale.h>
31 #include <sys/ioctl.h>
32 #include <sys/types.h>
33 +#include <sys/stat.h>
34 #include <sys/time.h>
35 #ifdef HAVE_GETOPT_LONG
36 # include <getopt.h>