diff options
Diffstat (limited to 'lib/makepath.c')
-rw-r--r-- | lib/makepath.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/makepath.c b/lib/makepath.c index 98b78a1e6..3ca5c9765 100644 --- a/lib/makepath.c +++ b/lib/makepath.c @@ -49,9 +49,11 @@ char *alloca (); extern int errno; #endif -#if defined(USG) || defined(STDC_HEADERS) +#if defined(STDC_HEADERS) || defined(HAVE_STRING_H) #include <string.h> +#ifndef index #define index strchr +#endif #else #include <strings.h> #endif |