File susepatches.patch of Package wine-pulseaudio

From 329b3307e628f4deec732f4d2261aa8cd0fd81ea Mon Sep 17 00:00:00 2001
From: Marcus Meissner <marcus@jet.franken.de>
Date: Fri, 8 Jul 2011 22:10:36 +0200
Subject: [PATCH] libv4l: Fixed videodev.h header moving away from glibc to libv4l-devel

---
 configure.ac                  |    9 +++++++++
 dlls/qcap/v4l.c               |    8 ++++++--
 dlls/qcap/yuv.c               |    2 +-
 4 files changed, 23 insertions(+), 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index 0e86713..8df9993 100644
--- a/configure.ac
+++ b/configure.ac
@@ -651,6 +651,15 @@ AC_CHECK_HEADERS([linux/videodev.h],,,
 #include <asm/types.h>
 #endif])
 
+AC_CHECK_HEADERS([libv4l1-videodev.h],,,
+[#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif
+#include <sys/types.h>
+#ifdef HAVE_ASM_TYPES_H
+#include <asm/types.h>
+#endif])
+
 dnl Check for broken kernel header that doesn't define __user
 AC_CHECK_HEADERS([linux/capi.h],,,[#define __user])
 
diff --git a/dlls/qcap/v4l.c b/dlls/qcap/v4l.c
index fadcd49..0d35cfe 100644
--- a/dlls/qcap/v4l.c
+++ b/dlls/qcap/v4l.c
@@ -63,7 +63,11 @@
 #include <asm/types.h>
 #endif
 #ifdef HAVE_LINUX_VIDEODEV_H
-#include <linux/videodev.h>
+# include <linux/videodev.h>
+#else
+# ifdef HAVE_LIBV4L1_VIDEODEV_H
+#  include <libv4l1-videodev.h>
+# endif
 #endif
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
@@ -71,7 +75,7 @@
 
 WINE_DEFAULT_DEBUG_CHANNEL(qcap_v4l);
 
-#ifdef HAVE_LINUX_VIDEODEV_H
+#if defined(HAVE_LINUX_VIDEODEV_H) || defined(HAVE_LIBV4L1_VIDEODEV_H)
 
 static typeof(open) *video_open = open;
 static typeof(close) *video_close = close;
diff --git a/dlls/qcap/yuv.c b/dlls/qcap/yuv.c
index 608e571..bbc1b50 100644
--- a/dlls/qcap/yuv.c
+++ b/dlls/qcap/yuv.c
@@ -32,7 +32,7 @@
 #include "wine/debug.h"
 
 /* This is not used if V4L support is missing */
-#ifdef HAVE_LINUX_VIDEODEV_H
+#if defined(HAVE_LINUX_VIDEODEV_H) || defined(HAVE_LIBV4L1_VIDEODEV_H)
 
 WINE_DEFAULT_DEBUG_CHANNEL(qcap);
 
-- 
1.7.3.4