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. --- string/basename.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'string/basename.c') diff --git a/string/basename.c b/string/basename.c index f24e0ac..ce1b4de 100644 --- a/string/basename.c +++ b/string/basename.c @@ -1,5 +1,5 @@ /* Return the name-within-directory of a file name. - Copyright (C) 1996, 1997 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -23,6 +23,13 @@ #include +#ifndef _LIBC +/* We cannot generally use the name `basename' since XPG defines an unusable + variant of the function but we cannot use it. */ +# define basename gnu_basename +#endif + + char * basename (filename) const char *filename; -- cgit v1.1