Apparently, some platforms don't have the index() function.

(closes issue #15639)
 Reported by: nmav


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@210064 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Tilghman Lesher
2009-08-03 15:39:41 +00:00
parent ffe395f410
commit a70128e190
4 changed files with 7206 additions and 7657 deletions

View File

@@ -84,6 +84,13 @@ int unsetenv(const char *name)
}
#endif
#ifndef HAVE_INDEX
char *index(const char *haystack, int needle)
{
return strchr(haystack, needle);
}
#endif
#ifndef HAVE_STRCASESTR
static char *upper(const char *orig, char *buf, int bufsize)
{