summaryrefslogtreecommitdiff
path: root/v4l/compat.h
diff options
context:
space:
mode:
authorDouglas Schilling Landgraf <dougsland@gmail.com>2008-02-17 17:53:19 -0300
committerDouglas Schilling Landgraf <dougsland@gmail.com>2008-02-17 17:53:19 -0300
commit047dfb0a62056f114245e9aee03b1cdc920ee209 (patch)
treee06d3e733ee9ea1d3c0b0ccf14b95238f396b0f7 /v4l/compat.h
parent18ac0ef62eca3a89e0bf1f3c23bb7004e760d15b (diff)
downloadmediapointer-dvb-s2-047dfb0a62056f114245e9aee03b1cdc920ee209.tar.gz
mediapointer-dvb-s2-047dfb0a62056f114245e9aee03b1cdc920ee209.tar.bz2
compat.h: Keep cancel_delayed_work_sync() compatible with kernel < 2.6.23
From: Tobias Lorenz <tobias.lorenz@gmx.net> Added define to keep cancel_delayed_work_sync() compatible with old kernel. (< 2.6.23) Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net> Reviewed-by: Douglas Schilling Landgraf <dougsland@gmail.com>
Diffstat (limited to 'v4l/compat.h')
-rw-r--r--v4l/compat.h3
1 files changed, 2 insertions, 1 deletions
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)