From f5a5763ee98be85baa03d87bd50e2799d3e3a202 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Mon, 3 Aug 2009 15:42:10 +0000 Subject: [PATCH] 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 --- include/asterisk/compat.h | 4 ++++ main/asterisk.exports | 1 + 2 files changed, 5 insertions(+) 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: *; }; -- 2.47.2