diff options
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/getopt.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib-src/getopt.c b/lib-src/getopt.c index 395d597bbc0..03effcbdb3e 100644 --- a/lib-src/getopt.c +++ b/lib-src/getopt.c | |||
| @@ -201,15 +201,18 @@ static char *posixly_correct; | |||
| 201 | # define my_index strchr | 201 | # define my_index strchr |
| 202 | #else | 202 | #else |
| 203 | 203 | ||
| 204 | # if HAVE_STRING_H | ||
| 205 | # include <string.h> | ||
| 206 | # else | ||
| 207 | # include <strings.h> | ||
| 208 | # endif | ||
| 209 | |||
| 204 | /* Avoid depending on library functions or files | 210 | /* Avoid depending on library functions or files |
| 205 | whose names are inconsistent. */ | 211 | whose names are inconsistent. */ |
| 206 | 212 | ||
| 207 | #ifndef getenv | 213 | #ifndef getenv |
| 208 | extern char *getenv (); | 214 | extern char *getenv (); |
| 209 | #endif | 215 | #endif |
| 210 | #ifndef strncmp | ||
| 211 | extern int strncmp (); | ||
| 212 | #endif | ||
| 213 | 216 | ||
| 214 | static char * | 217 | static char * |
| 215 | my_index (str, chr) | 218 | my_index (str, chr) |