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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
## use_libv4l-dev.dpatch by Daniel Polehn <dpolehn@gmail.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' dv4l~/dv4l.c dv4l/dv4l.c
--- dv4l~/dv4l.c 2011-06-26 22:32:29.058413510 -0700
+++ dv4l/dv4l.c 2011-06-26 22:37:55.608892461 -0700
@@ -23,7 +23,7 @@
#include <sys/select.h>
#include <sys/stat.h>
#include <sys/time.h>
-#include <linux/videodev.h>
+#include <libv4l1-videodev.h>
#include <assert.h>
#include <fcntl.h>
#include <getopt.h>
@@ -61,6 +61,10 @@
#define DV4LVERSION "0.0"
#endif
+#ifndef BASE_VIDIOCPRIVATE
+#define BASE_VIDIOCPRIVATE 192
+#endif
+
/*
* these constants are used to detect a vloopback input device
* let's hope they won't change them
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' dv4l~/interdv4l.c dv4l/interdv4l.c
--- dv4l~/interdv4l.c 2011-06-26 22:32:29.038413485 -0700
+++ dv4l/interdv4l.c 2011-06-26 22:32:29.218413750 -0700
@@ -44,7 +44,7 @@
#define __USE_LARGEFILE64
#include <sys/stat.h>
-#include <linux/videodev.h>
+#include <libv4l1-videodev.h>
#include <dirent.h>
#include "config.h"
#include "version.h"
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' dv4l~/palettes.c dv4l/palettes.c
--- dv4l~/palettes.c 2011-06-26 22:26:53.000000000 -0700
+++ dv4l/palettes.c 2011-06-26 22:32:29.218413750 -0700
@@ -17,7 +17,7 @@
* Author: Wolfgang Beck <bewo at users.berlios.de> 2007
*/
-#include <linux/videodev.h>
+#include <libv4l1-videodev.h>
/*
* RGB to YUV420P conversion taken from
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' dv4l~/util.c dv4l/util.c
--- dv4l~/util.c 2011-06-26 22:26:53.000000000 -0700
+++ dv4l/util.c 2011-06-26 22:32:29.218413750 -0700
@@ -23,7 +23,7 @@
#include <stdarg.h>
#include <string.h>
#include <fcntl.h>
-#include <linux/videodev.h>
+#include <libv4l1-videodev.h>
#include "util.h"
static int tracelevel = 1;
|