From d434ae4ff66f75356b13f64ba9cc2c364823fc6d Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 10 Nov 2015 15:49:56 +0000 Subject: [PATCH] backport.h: Fix build against 2.6.38 and RHEL 6 kernels git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6654 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/backport.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scst/include/backport.h b/scst/include/backport.h index 790bb3e1d..8b767c7a3 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -255,7 +255,9 @@ static inline void hex2bin(u8 *dst, const char *src, size_t count) } #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39) +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39) && \ + LINUX_VERSION_CODE != KERNEL_VERSION(2, 6, 38) && \ + (!defined(RHEL_MAJOR) || RHEL_MAJOR -0 < 6) static inline int __must_check kstrtoull(const char *s, unsigned int base, unsigned long long *res) {