summaryrefslogtreecommitdiff
path: root/lib-src/getopt.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-05-19 07:09:32 +0000
committerUlrich Drepper <drepper@redhat.com>1998-05-19 07:09:32 +0000
commit152b9de41cd068d6db5d413ebf885258cf5f3c44 (patch)
treef05a9a937213630527698f290b68bd1ab347e3e2 /lib-src/getopt.c
parenta4e7db383d31bfbc06397d42283bef527cfdf671 (diff)
automatically generated from GPLed version
Diffstat (limited to 'lib-src/getopt.c')
-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 395d597bbc..03effcbdb3 100644
--- a/lib-src/getopt.c
+++ b/lib-src/getopt.c
@@ -201,15 +201,18 @@ static char *posixly_correct;
# define my_index strchr
#else
+# if HAVE_STRING_H
+# include <string.h>
+# else
+# include <strings.h>
+# endif
+
/* Avoid depending on library functions or files
whose names are inconsistent. */
#ifndef getenv
extern char *getenv ();
#endif
-#ifndef strncmp
-extern int strncmp ();
-#endif
static char *
my_index (str, chr)