mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 19:21:26 +00:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user