freebsd-ports/multimedia/fxtv/files/patch-tvcapture.c
MIHIRA Sanpei Yoshiro 991b898e72 Re-add multimedia/fxtv and mplex
- update Mastersite
 - take maintainership from ports@FreeBSD.org.

Feature safe:	yes
2011-11-27 11:56:22 +00:00

25 lines
480 B
C

$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>