diff options
-rw-r--r-- | lib/userspec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/userspec.c b/lib/userspec.c index 60c6ecc1a..44d7d9174 100644 --- a/lib/userspec.c +++ b/lib/userspec.c @@ -22,9 +22,11 @@ #include <pwd.h> #include <grp.h> -#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 |