summaryrefslogtreecommitdiff
path: root/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
commitf0986b1a257c4f83f52d611f08d22d05dfad9e1f (patch)
treeb880e40eb1a90b98af868e585e62940f055461ff /getopt.c
parentdd389b48857bbe1b9098df957d1b3fee045fbf0c (diff)
downloadmake-f0986b1a257c4f83f52d611f08d22d05dfad9e1f.tar.gz
automatically generated from GPLed version
Diffstat (limited to 'getopt.c')
-rw-r--r--getopt.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/getopt.c b/getopt.c
index 395d597b..03effcbd 100644
--- a/getopt.c
+++ b/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)