summaryrefslogtreecommitdiff
path: root/v4l
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-11-02 18:00:10 -0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-11-02 18:00:10 -0200
commit402c1ace76e132bcff86383212b3d2c66b40fd77 (patch)
tree530012efe8e600eb812baaa8acad332a2155f872 /v4l
parente386e857baaf48c5634e617051e4aa866550188f (diff)
downloadmediapointer-dvb-s2-402c1ace76e132bcff86383212b3d2c66b40fd77.tar.gz
mediapointer-dvb-s2-402c1ace76e132bcff86383212b3d2c66b40fd77.tar.bz2
Add compatibility code for BIT_MASK and BIT_WORD
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l')
-rw-r--r--v4l/compat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/v4l/compat.h b/v4l/compat.h
index 4e23e5fc5..e4877e865 100644
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -478,6 +478,10 @@ do { \
} while (0)
#endif
+#ifndef BIT_MASK
+# define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG))
+# define BIT_WORD(nr) ((nr) / BITS_PER_LONG)
+#endif
#endif
/*