|
From: <swg...@us...> - 2008-04-24 13:12:11
|
Revision: 358
http://scst.svn.sourceforge.net/scst/?rev=358&view=rev
Author: swgruszka
Date: 2008-04-24 06:12:08 -0700 (Thu, 24 Apr 2008)
Log Message:
-----------
Add missing definition of strncasecmp() for older kernels.
Modified Paths:
--------------
trunk/qla_isp/linux/isp_scst.c
Modified: trunk/qla_isp/linux/isp_scst.c
===================================================================
--- trunk/qla_isp/linux/isp_scst.c 2008-04-24 12:50:51 UTC (rev 357)
+++ trunk/qla_isp/linux/isp_scst.c 2008-04-24 13:12:08 UTC (rev 358)
@@ -1234,6 +1234,24 @@
static DEFINE_MUTEX(proc_mutex);
+/*
+ * Many procfs things is taken from scst/src/scst_proc.c
+ */
+
+#if !defined(CONFIG_PPC) && (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22))
+
+static int strncasecmp(const char *s1, const char *s2, size_t n)
+{
+ int c1, c2;
+ do {
+ c1 = tolower(*s1++);
+ c2 = tolower(*s2++);
+ } while ((--n > 0) && c1 == c2 && c1 != 0);
+ return c1 - c2;
+}
+
+#endif
+
static int
isp_read_proc(struct seq_file *seq, void *v)
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|