diff options
Diffstat (limited to 'v4l')
-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 /* |