From d46697867d3baa780e105ea152470aedbf2c0d4a Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Sat, 26 Jul 2008 14:45:09 -0300 Subject: Fix compat for stkcam From: Mauro Carvalho Chehab Signed-off-by: Mauro Carvalho Chehab --- v4l/compat.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/v4l/compat.h b/v4l/compat.h index 5e46c8271..551696082 100644 --- a/v4l/compat.h +++ b/v4l/compat.h @@ -228,4 +228,11 @@ static inline struct proc_dir_entry *proc_create_data(const char *a, typedef unsigned long uintptr_t; #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26) +static inline int list_is_singular(const struct list_head *head) +{ + return !list_empty(head) && (head->next == head->prev); +} +#endif + #endif -- cgit v1.2.3