Builds again on RHEL 5.x / CentOS 5.x.

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1580 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2010-04-04 11:32:02 +00:00
parent 4aadb84528
commit fb9fec14f3

View File

@@ -46,7 +46,9 @@ struct scsi_io_context {
static struct kmem_cache *scsi_io_context_cache;
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 21)
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22) \
&& (!defined(RHEL_RELEASE_CODE) || RHEL_RELEASE_CODE -0 < 5 * 256 + 3) \
&& !defined(CONFIG_PPC)
static int strncasecmp(const char *s1, const char *s2, size_t n)
{
int c1, c2;