summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-08-30 09:28:27 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2008-08-30 09:28:27 +0200
commit02b7d50e14bfab34a05bb914d44cf219742e7e1f (patch)
treea4fdd130f04fb96231568e13b0c5de273f23a1e4
parent4478dd69f2b9c27d2e6a4c9d6bbd4528483ec73c (diff)
downloadmediapointer-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>
-rw-r--r--linux/drivers/media/video/cpia.c1
-rw-r--r--v4l/compat.h5
2 files changed, 6 insertions, 0 deletions
diff --git a/linux/drivers/media/video/cpia.c b/linux/drivers/media/video/cpia.c
index 448dccfb1..0bee440ab 100644
--- a/linux/drivers/media/video/cpia.c
+++ b/linux/drivers/media/video/cpia.c
@@ -44,6 +44,7 @@
#endif
#include "cpia.h"
+#include "compat.h"
static int video_nr = -1;
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