## 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;
