Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

automatically generated from GPLed version

  • Loading branch information...
commit f7ee70117069a957b144be41f88a2be5e23a5a7a 1 parent 5cdc6c8
Ulrich Drepper authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 lib-src/getopt.c
View
9 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)
Please sign in to comment.
Something went wrong with that request. Please try again.