diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-04-28 19:41:51 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-04-28 19:41:51 +0000 |
commit | 5b155773ee9c869d926e35039c244bbdfc249384 (patch) | |
tree | 8625e62eacebf723e8d8314ebf8bf6e76a18fea5 /posix/getopt.c | |
parent | 733bb62a1e04206c836cf47df1c237421df98c5f (diff) | |
download | glibc-5b155773ee9c869d926e35039c244bbdfc249384.tar glibc-5b155773ee9c869d926e35039c244bbdfc249384.tar.gz glibc-5b155773ee9c869d926e35039c244bbdfc249384.tar.bz2 glibc-5b155773ee9c869d926e35039c244bbdfc249384.zip |
Update.
* string/basename.c [!_LIBC]: Define function as gnu_basename.
* posix/getopt.c [!__GNU_LIBRARY__]: Include string.h or
strings.h.
Diffstat (limited to 'posix/getopt.c')
-rw-r--r-- | posix/getopt.c | 9 |
1 files changed, 6 insertions, 3 deletions
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 <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) |