]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Helps if we export the index() function.
authorTilghman Lesher <tilghman@meg.abyt.es>
Mon, 3 Aug 2009 15:42:10 +0000 (15:42 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Mon, 3 Aug 2009 15:42:10 +0000 (15:42 +0000)
(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
main/asterisk.exports

index d91ce4a1ac17784aab32d0aea1f66fedbd86618c..f321665cd9571c8f232537731ece7a3aa155503e 100644 (file)
@@ -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
index b50350606869b6c68f59483dae8b6161fe081072..fa9b33192b62e44b9f7fa337cd80ba04985105b9 100644 (file)
@@ -40,6 +40,7 @@
                getloadavg;
                strlcat;
                strlcpy;
+               index;
        local:
                *;
 };