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
This commit is contained in:
Bart Van Assche
2015-11-10 15:49:56 +00:00
parent 9c130c6e14
commit d434ae4ff6

View File

@@ -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)
{