# Description: Use headers from linux-libc-dev instead of the old included ones.
# Author: Luca Niccoli <lultimouomo@gmail.com>
# Forwarded: not-needed

Index: fswebcam-20101118/src_v4l1.c
===================================================================
--- fswebcam-20101118.orig/src_v4l1.c	2011-06-25 18:10:24.702074598 +0200
+++ fswebcam-20101118/src_v4l1.c	2011-06-25 18:13:54.387114371 +0200
@@ -19,7 +19,7 @@
 #include <errno.h>
 #include <sys/ioctl.h>
 #include <sys/mman.h>
-#include "videodev.h"
+#include <libv4l1-videodev.h>
 #include "videodev_mjpeg.h"
 #include "src.h"
 #include "log.h"
Index: fswebcam-20101118/src_v4l2.c
===================================================================
--- fswebcam-20101118.orig/src_v4l2.c	2011-06-25 18:10:24.730074738 +0200
+++ fswebcam-20101118/src_v4l2.c	2011-06-25 18:12:13.794615566 +0200
@@ -19,7 +19,7 @@
 #include <errno.h>
 #include <sys/ioctl.h>
 #include <sys/mman.h>
-#include "videodev2.h"
+#include <linux/videodev2.h>
 #include "src.h"
 #include "log.h"
 
Index: fswebcam-20101118/videodev_mjpeg.h
===================================================================
--- fswebcam-20101118.orig/videodev_mjpeg.h	2011-06-25 18:12:20.598649300 +0200
+++ fswebcam-20101118/videodev_mjpeg.h	2011-06-25 18:14:12.447203924 +0200
@@ -103,6 +103,11 @@
 /*
 Private IOCTL to set up for displaying MJPEG
 */
+
+#ifndef BASE_VIDIOCPRIVATE
+#define BASE_VIDIOCPRIVATE      192
+#endif
+
 #define MJPIOC_G_PARAMS       _IOR ('v', BASE_VIDIOCPRIVATE+0,  struct mjpeg_params)
 #define MJPIOC_S_PARAMS       _IOWR('v', BASE_VIDIOCPRIVATE+1,  struct mjpeg_params)
 #define MJPIOC_REQBUFS        _IOWR('v', BASE_VIDIOCPRIVATE+2,  struct mjpeg_requestbuffers)
