mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-17 20:56:24 +00:00
From Erik Habbinga <erikhabbinga@inphase-tech.com>
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user