scst.h: RHEL 5.10 build fix (merge r5760 from trunk)

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@5761 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2014-09-03 13:53:03 +00:00
parent 931c9ae971
commit bac02ff34e

View File

@@ -74,10 +74,14 @@ typedef _Bool bool;
#define false 0
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 21) && !defined(RHEL_MAJOR)
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 21)
#ifndef __packed
#define __packed __attribute__((packed))
#endif
#ifndef __aligned
#define __aligned __attribute__((aligned))
#endif
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22)
char *kvasprintf(gfp_t gfp, const char *fmt, va_list ap);