From f944799e425ff438c9bd8bc9f1007e1521089a23 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 4 Feb 2012 16:41:21 +0000 Subject: [PATCH] iscsi-scst: Port to RHEL 5.7 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4112 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/kernel/target.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iscsi-scst/kernel/target.c b/iscsi-scst/kernel/target.c index ffe11cfc1..2f7d23ca9 100644 --- a/iscsi-scst/kernel/target.c +++ b/iscsi-scst/kernel/target.c @@ -382,7 +382,8 @@ void target_del_all(void) #ifdef CONFIG_SCST_PROC -#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19) +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19) && \ + (!defined(RHEL_MAJOR) || RHEL_MAJOR -0 <= 5 && RHEL_MINOR -0 <= 6) static struct list_head *seq_list_start(struct list_head *head, loff_t pos) { struct list_head *lh;