summaryrefslogtreecommitdiff
path: root/multimedia/fxtv/files/patch-tvcapture.c
blob: 5d9e182246aaea250f617ffad30ff4ea6abf7e48 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$FreeBSD$

--- tvcapture.c.orig
+++ tvcapture.c
@@ -34,11 +34,18 @@
 #include <stdlib.h>
 #include <fcntl.h>
 #include <errno.h>
+#include <sys/types.h>
 #include <sys/mman.h>
 #ifdef __NetBSD__
 # include <dev/ic/bt8xx.h>
+#endif
+#ifdef __FreeBSD__
+#include <osreldate.h>
+#if __FreeBSD_version > 500000
+#include <dev/bktr/ioctl_bt848.h>
 #else
-# include <machine/ioctl_bt848.h>
+#include <machine/ioctl_bt848.h>
+#endif
 #endif
 #include <signal.h>
 #include <sys/ioctl.h>