diff options
Diffstat (limited to 'main/strcompat.c')
-rw-r--r-- | main/strcompat.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/main/strcompat.c b/main/strcompat.c index 243ef76cb..52347db17 100644 --- a/main/strcompat.c +++ b/main/strcompat.c @@ -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) { |