From: Tilghman Lesher Date: Mon, 3 Aug 2009 15:42:10 +0000 (+0000) Subject: Helps if we export the index() function. X-Git-Tag: 1.4.26.2~4^2~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5a5763ee98be85baa03d87bd50e2799d3e3a202;p=thirdparty%2Fasterisk.git Helps if we export the index() function. (Related to issue #15639) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@210065 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/compat.h b/include/asterisk/compat.h index d91ce4a1ac..f321665cd9 100644 --- a/include/asterisk/compat.h +++ b/include/asterisk/compat.h @@ -50,6 +50,10 @@ size_t strnlen(const char *, size_t); char* strsep(char** str, const char* delims); #endif +#ifndef HAVE_INDEX +char *index(const char *haystack, int needle); +#endif + #ifndef HAVE_STRTOQ uint64_t strtoq(const char *nptr, char **endptr, int base); #endif diff --git a/main/asterisk.exports b/main/asterisk.exports index b503506068..fa9b33192b 100644 --- a/main/asterisk.exports +++ b/main/asterisk.exports @@ -40,6 +40,7 @@ getloadavg; strlcat; strlcpy; + index; local: *; };