From fb9fec14f3dd60ecbe47e324990d3ea9af22f050 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 4 Apr 2010 11:32:02 +0000 Subject: [PATCH] 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 --- scst/src/scst_lib.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index 9f8bf7c1f..c1042a65c 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -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;