From c31ac7c5913878a4d7bb40e56be4b9a046933aee Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 4 Feb 2012 16:40:33 +0000 Subject: [PATCH] scst: Port to RHEL 5.7 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4111 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_proc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scst/src/scst_proc.c b/scst/src/scst_proc.c index 397a5b986..01bfb0ae7 100644 --- a/scst/src/scst_proc.c +++ b/scst/src/scst_proc.c @@ -2738,7 +2738,8 @@ EXPORT_SYMBOL_GPL(scst_create_proc_entry); int scst_single_seq_open(struct inode *inode, struct file *file) { -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 23) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 23) \ + || defined(RHEL_MAJOR) && RHEL_MAJOR -0 >= 5 && RHEL_MINOR -0 >= 7 struct scst_proc_data *pdata = container_of(PDE(inode)->proc_fops, struct scst_proc_data, seq_op); #else