From 047dfb0a62056f114245e9aee03b1cdc920ee209 Mon Sep 17 00:00:00 2001 From: Douglas Schilling Landgraf Date: Sun, 17 Feb 2008 17:53:19 -0300 Subject: compat.h: Keep cancel_delayed_work_sync() compatible with kernel < 2.6.23 From: Tobias Lorenz Added define to keep cancel_delayed_work_sync() compatible with old kernel. (< 2.6.23) Signed-off-by: Tobias Lorenz Reviewed-by: Douglas Schilling Landgraf --- v4l/compat.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/v4l/compat.h b/v4l/compat.h index 581262bdf..0352fcd39 100644 --- a/v4l/compat.h +++ b/v4l/compat.h @@ -20,7 +20,8 @@ #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23) -# define set_freezable() +#define set_freezable() +#define cancel_delayed_work_sync cancel_rearming_delayed_work #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,18) -- cgit v1.2.3