diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-08-30 09:28:27 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2008-08-30 09:28:27 +0200 |
commit | 02b7d50e14bfab34a05bb914d44cf219742e7e1f (patch) | |
tree | a4fdd130f04fb96231568e13b0c5de273f23a1e4 /v4l | |
parent | 4478dd69f2b9c27d2e6a4c9d6bbd4528483ec73c (diff) | |
download | mediapointer-dvb-s2-02b7d50e14bfab34a05bb914d44cf219742e7e1f.tar.gz mediapointer-dvb-s2-02b7d50e14bfab34a05bb914d44cf219742e7e1f.tar.bz2 |
compat: add current_uid define to fix compile errors on kernels < 2.6.27
From: Hans Verkuil <hverkuil@xs4all.nl>
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'v4l')
-rw-r--r-- | v4l/compat.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 |