From b668ab5a6ec1cb872bdc4d9f78d8168193c9955e Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 3 Apr 2014 15:58:16 +0000 Subject: [PATCH] ib_srpt: RHEL 6.5 build fix git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5403 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/srpt/src/ib_srpt.h b/srpt/src/ib_srpt.h index 39272015b..621ca3926 100644 --- a/srpt/src/ib_srpt.h +++ b/srpt/src/ib_srpt.h @@ -133,9 +133,12 @@ enum { RDMA_COMPL_TIMEOUT_S = 80, }; -#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 1, 0) && \ - !(defined(CONFIG_SUSE_KERNEL) && \ - LINUX_VERSION_CODE >= KERNEL_VERSION(3, 0, 76)) +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 1, 0) && \ + !(defined(CONFIG_SUSE_KERNEL) && \ + LINUX_VERSION_CODE >= KERNEL_VERSION(3, 0, 76)) && \ + !(defined(RHEL_MAJOR) && \ + (RHEL_MAJOR -0 > 6 || \ + RHEL_MAJOR -0 == 6 && RHEL_MINOR -0 >= 5)) /* See also patch "IB/core: Add GID change event" (commit 761d90ed4). */ enum { IB_EVENT_GID_CHANGE = 18 }; #endif