do case insensitive searching with ipc window names

SVN revision: 25091
This commit is contained in:
Mike Frysinger 2006-08-24 21:32:28 +00:00
parent 6a7bdfd972
commit 603ee950d7
3 changed files with 9 additions and 2 deletions

View File

@ -67,7 +67,7 @@ AC_CHECK_FUNCS(getcwd)
AC_CHECK_FUNCS(mkdir)
AC_CHECK_FUNCS(snprintf)
AM_CONDITIONAL(USE_ESNPRINTF, test "x$ac_cv_func_snprintf" != "xyes")
AC_CHECK_FUNCS(strcasecmp)
AC_CHECK_FUNCS(strcasecmp strcasestr)
AC_CHECK_FUNCS(setenv unsetenv)
AC_CHECK_FUNCS(strdup strndup)

View File

@ -99,6 +99,13 @@
#error "particular Operating System or Distribution"
#endif
#ifndef HAVE_STRCASESTR
# define strcasestr(haystack, needle) strstr(haystack, needle)
#endif
#ifndef HAVE_STRCASECMP
# define strcasecmp(s1, s2) strcmp(s1, s2)
#endif
#define FILEPATH_LEN_MAX 4096
#ifndef MAX

View File

@ -167,7 +167,7 @@ IpcFindEwins(const char *match, int *pnum, int *pflags)
name = ewin->icccm.wm_name;
if (!name)
continue;
if (!strstr(name, match))
if (!strcasestr(name, match))
continue;
}
nfound++;