From 02b7d50e14bfab34a05bb914d44cf219742e7e1f Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Sat, 30 Aug 2008 09:28:27 +0200 Subject: compat: add current_uid define to fix compile errors on kernels < 2.6.27 From: Hans Verkuil Priority: normal Signed-off-by: Hans Verkuil --- v4l/compat.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'v4l/compat.h') diff --git a/v4l/compat.h b/v4l/compat.h index 6df2f6f13..6e90c0e63 100644 --- a/v4l/compat.h +++ b/v4l/compat.h @@ -230,6 +230,11 @@ static inline int list_is_singular(const struct list_head *head) { return !list_empty(head) && (head->next == head->prev); } + +#endif + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 27) +#define current_uid() (current->uid) #endif #endif -- cgit v1.2.3