diff options
| author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-11-02 18:00:10 -0200 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-11-02 18:00:10 -0200 |
| commit | 402c1ace76e132bcff86383212b3d2c66b40fd77 (patch) | |
| tree | 530012efe8e600eb812baaa8acad332a2155f872 | |
| parent | e386e857baaf48c5634e617051e4aa866550188f (diff) | |
| download | mediapointer-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>
| -rw-r--r-- | v4l/compat.h | 4 |
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 /* |
