From f240359569256bde592be1b5a647a301a1b40a6d Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Sat, 28 Jun 2008 12:04:12 -0300 Subject: Fix compat with older kernels From: Mauro Carvalho Chehab Signed-off-by: Mauro Carvalho Chehab --- v4l/compat.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'v4l/compat.h') diff --git a/v4l/compat.h b/v4l/compat.h index b49572b4e..69a86bb72 100644 --- a/v4l/compat.h +++ b/v4l/compat.h @@ -541,6 +541,10 @@ do { \ le32_to_cpu(get_unaligned((u32 *)(a))) #define put_unaligned_le32(r, a) \ put_unaligned(cpu_to_le32(r), ((u32 *)(a))) +#define get_unaligned_le64(a) \ + le64_to_cpu(get_unaligned((u64 *)(a))) +#define put_unaligned_le64(r, a) \ + put_unaligned(cpu_to_le64(r), ((u64 *)(a))) #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25) #ifdef CONFIG_PROC_FS -- cgit v1.2.3