diff options
-rw-r--r-- | include/asterisk/compat.h | 4 | ||||
-rw-r--r-- | main/asterisk.exports | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/asterisk/compat.h b/include/asterisk/compat.h index d91ce4a1a..f321665cd 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 b50350606..fa9b33192 100644 --- a/main/asterisk.exports +++ b/main/asterisk.exports @@ -40,6 +40,7 @@ getloadavg; strlcat; strlcpy; + index; local: *; }; |