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
commit4950159344aca6bf56176bfbcb9889c10ce5f9a0 (patch)
treeb880e40eb1a90b98af868e585e62940f055461ff /getopt.c
parent91da8b09dfbe6474140c2e30fd187b30373e467a (diff)
downloadgunmake-4950159344aca6bf56176bfbcb9889c10ce5f9a0.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 395d597..03effcb 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)