[PATCH] Fix stk-webcam.c build against 2.6.21
Compile-tested against 2.6.21 and 2.6.23.
Signed-off-by: Darren Salt <linux@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
diff --git a/v4l/compat.h b/v4l/compat.h
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -509,6 +509,12 @@ do { \
.bInterfaceSubClass = (sc), .bInterfaceProtocol = (pr)
#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)
+/* from include/linux/list.h */
+#define list_first_entry(ptr, type, member) \
+ list_entry((ptr)->next, type, member)
+#endif
+
#endif
/*
* Local variables:
--
| Darren Salt | linux or ds at | nr. Ashington, | Toon
| RISC OS, Linux | youmustbejoking,demon,co,uk | Northumberland | Army
| + Lobby friends, family, business, government. WE'RE KILLING THE PLANET.
Stop searching forever. Happiness is just next to you.
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list