From bc2833c2e4097c888ef6da9ff350decf55beda8f Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Tue, 22 Feb 2011 00:35:27 +0100 Subject: [PATCH] udev: add patch to fix build against linux-2.6.38 Signed-off-by: Stephan Raue --- .../patches/udev-166-drop_obsolete_v4l1.patch | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 packages/sysutils/udev/patches/udev-166-drop_obsolete_v4l1.patch diff --git a/packages/sysutils/udev/patches/udev-166-drop_obsolete_v4l1.patch b/packages/sysutils/udev/patches/udev-166-drop_obsolete_v4l1.patch new file mode 100644 index 0000000000..e445ecadf5 --- /dev/null +++ b/packages/sysutils/udev/patches/udev-166-drop_obsolete_v4l1.patch @@ -0,0 +1,39 @@ +diff -Naur udev-166/extras/v4l_id/v4l_id.c udev-166a/extras/v4l_id/v4l_id.c +--- udev-166/extras/v4l_id/v4l_id.c 2009-12-03 13:45:03.000000000 +0100 ++++ udev-166a/extras/v4l_id/v4l_id.c 2011-02-12 12:02:38.183834848 +0100 +@@ -28,7 +28,6 @@ + #include + #include + #include +-#include + #include + + int main (int argc, char *argv[]) +@@ -39,7 +38,6 @@ + }; + int fd; + char *device; +- struct video_capability v1cap; + struct v4l2_capability v2cap; + + while (1) { +@@ -82,19 +80,6 @@ + if ((v2cap.capabilities & V4L2_CAP_RADIO) > 0) + printf("radio:"); + printf("\n"); +- } else if (ioctl (fd, VIDIOCGCAP, &v1cap) == 0) { +- printf("ID_V4L_VERSION=1\n"); +- printf("ID_V4L_PRODUCT=%s\n", v1cap.name); +- printf("ID_V4L_CAPABILITIES=:"); +- if ((v1cap.type & VID_TYPE_CAPTURE) > 0) +- printf("capture:"); +- if ((v1cap.type & VID_TYPE_OVERLAY) > 0) +- printf("video_overlay:"); +- if (v1cap.audios > 0) +- printf("audio:"); +- if ((v1cap.type & VID_TYPE_TUNER) > 0) +- printf("tuner:"); +- printf("\n"); + } + + close (fd);