From 5b155773ee9c869d926e35039c244bbdfc249384 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 28 Apr 1998 19:41:51 +0000 Subject: Update. * string/basename.c [!_LIBC]: Define function as gnu_basename. * posix/getopt.c [!__GNU_LIBRARY__]: Include string.h or strings.h. --- posix/getopt.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'posix') diff --git a/posix/getopt.c b/posix/getopt.c index 4cbf3614cc..4d837c041a 100644 --- a/posix/getopt.c +++ b/posix/getopt.c @@ -198,15 +198,18 @@ static char *posixly_correct; # define my_index strchr #else +# if HAVE_STRING_H +# include +# else +# include +# 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) -- cgit v1.2.3