This patch allows SCST to compile on a PPC/powerpc platform.  PPC already has strcasecmp and strncasecmp defined in
include/asm-powerpc/string.h.  The patch takes strcasecmp/strncasecmp out of scst_proc.c



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@40 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2006-12-04 10:59:26 +00:00
parent 22041237a9
commit 3c0e316ce6
+4
View File
@@ -191,6 +191,8 @@ static DECLARE_MUTEX(scst_proc_mutex);
#include <linux/ctype.h>
#if !defined(CONFIG_PPC)
#if defined(DEBUG) || defined(TRACING)
static int strcasecmp(const char *s1, const char *s2)
{
@@ -213,6 +215,8 @@ static int strncasecmp(const char *s1, const char *s2, int n)
return c1 - c2;
}
#endif /* CONFIG_PPC */
int scst_proc_read_tlb(const struct scst_proc_log *tbl, char *buffer,
int length, off_t offset, unsigned long log_level, int *first,
int *size, int *len, off_t *begin, off_t *pos)