The patch number 8849 was added via Hans Verkuil <[EMAIL PROTECTED]> to http://linuxtv.org/hg/v4l-dvb master development tree.
Kernel patches in this development tree may be modified to be backward compatible with older kernels. Compatibility modifications will be removed before inclusion into the mainstream Kernel If anyone has any objections, please let us know by sending a message to: [EMAIL PROTECTED] ------ From: Hans Verkuil <[EMAIL PROTECTED]> compat: add current_uid define to fix compile errors on kernels < 2.6.27 Priority: normal Signed-off-by: Hans Verkuil <[EMAIL PROTECTED]> --- linux/drivers/media/video/cpia.c | 1 + v4l/compat.h | 11 ++++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff -r 1a28ba7ddb1d -r 29e758975b13 linux/drivers/media/video/cpia.c --- a/linux/drivers/media/video/cpia.c Fri Aug 29 23:36:14 2008 +0200 +++ b/linux/drivers/media/video/cpia.c Sat Aug 30 09:28:27 2008 +0200 @@ -44,6 +44,7 @@ #endif #include "cpia.h" +#include "compat.h" static int video_nr = -1; diff -r 1a28ba7ddb1d -r 29e758975b13 v4l/compat.h --- a/v4l/compat.h Fri Aug 29 23:36:14 2008 +0200 +++ b/v4l/compat.h Sat Aug 30 09:28:27 2008 +0200 @@ -230,6 +230,11 @@ static inline int list_is_singular(const { return !list_empty(head) && (head->next == head->prev); } -#endif - -#endif + +#endif + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 27) +#define current_uid() (current->uid) +#endif + +#endif --- Patch is available at: http://linuxtv.org/hg/v4l-dvb/rev/29e758975b132540e7b9b39808452cfd158694f2 _______________________________________________ linuxtv-commits mailing list linuxtv-commits@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits