From a078a269f386e0d4673e55a2c3eef71a9a7318d5 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 20 Mar 2011 09:26:34 +0000 Subject: [PATCH] Complain if it is attempted to use the sysfs interface on a pre-2.6.26 kernel. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3285 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/scst.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scst/include/scst.h b/scst/include/scst.h index 8663da631..cf1d7fda5 100644 --- a/scst/include/scst.h +++ b/scst/include/scst.h @@ -36,6 +36,9 @@ #include #elif defined(RHEL_MAJOR) && RHEL_MAJOR -0 <= 5 #error The SCST sysfs interface is not supported on RHEL 5. Please run make enable_proc. +#elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26) +#elif defined(RHEL_MAJOR) && RHEL_MAJOR -0 <= 5 +#error The SCST sysfs interface is supported from kernel version 2.6.26 on. Please run make enable_proc. #endif #include