aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib-src/getopt.c9
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
208extern char *getenv (); 214extern char *getenv ();
209#endif 215#endif
210#ifndef strncmp
211extern int strncmp ();
212#endif
213 216
214static char * 217static char *
215my_index (str, chr) 218my_index (str, chr)