<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;"># From http://cgit.freedesktop.org/hal/commit/?id=ae13d96fa2a0612b6000f4b8f6ed9d3564035703
# to better fix https://bugs.launchpad.net/ubuntu/+source/hal/+bug/721399
diff --git a/hald/linux/probing/probe-video4linux.c b/hald/linux/probing/probe-video4linux.c
index 7bc13e8..b055720 100644
--- a/hald/linux/probing/probe-video4linux.c
+++ b/hald/linux/probing/probe-video4linux.c
@@ -30,7 +30,9 @@
 #include &lt;sys/types.h&gt;
 #include &lt;sys/time.h&gt;
 #include &lt;sys/ioctl.h&gt;
+#ifdef HAVE_LINUX_VIDEODEV_H
 #include &lt;linux/videodev.h&gt;
+#endif
 #include &lt;linux/videodev2.h&gt;
 #include &lt;errno.h&gt;
 #include &lt;fcntl.h&gt;
@@ -50,7 +52,9 @@ main (int argc, char *argv[])
 	int ret = -1;
 	char *udi;
 	char *device_file;
+#ifdef HAVE_LINUX_VIDEODEV_H
 	struct video_capability v1cap;
+#endif
 	struct v4l2_capability v2cap;
 	LibHalContext *ctx = NULL;
 	LibHalChangeSet *cset;
@@ -107,7 +111,9 @@ main (int argc, char *argv[])
 			LIBHAL_FREE_DBUS_ERROR (&amp;error);
 			libhal_device_add_capability (ctx, udi, "video4linux.radio", &amp;error);
 		}
-	} else {
+	}
+#ifdef HAVE_LINUX_VIDEODEV_H
+	else {
 		HAL_DEBUG (("ioctl VIDIOC_QUERYCAP failed"));
 
 		if (ioctl (fd, VIDIOCGCAP, &amp;v1cap) == 0) {
@@ -134,6 +140,7 @@ main (int argc, char *argv[])
 			HAL_DEBUG (("ioctl VIDIOCGCAP failed"));
 		}
 	}
+#endif
 
 	LIBHAL_FREE_DBUS_ERROR (&amp;error);
 	libhal_device_commit_changeset (ctx, cset, &amp;error);
</pre></body></html>