From 3c0e316ce6aad8f803f79920b294f0a768b16b3f Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Mon, 4 Dec 2006 10:59:26 +0000 Subject: [PATCH] From Erik Habbinga 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 --- scst/src/scst_proc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scst/src/scst_proc.c b/scst/src/scst_proc.c index ef59e32e9..580cc974b 100644 --- a/scst/src/scst_proc.c +++ b/scst/src/scst_proc.c @@ -191,6 +191,8 @@ static DECLARE_MUTEX(scst_proc_mutex); #include +#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)