From 5e6d385b78c3424c3c7387088ad81b9db2c12774 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 26 Apr 2002 15:13:36 +0000 Subject: [PATCH] Portability to Linux libc5. --- lib/ChangeLog | 6 ++++++ lib/basename.c | 4 ++-- lib/basename.h | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index b3713c70e..29a0039c9 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,9 @@ +2002-04-26 Bruno Haible + + * basename.h: Use __GLIBC__ instead of __GNU_LIBRARY__, because + Linux libc5 doesn't declare basename() properly. + * basename.c: Likewise. + 2002-04-24 Bruno Haible * gettext-0.11.2 released. diff --git a/lib/basename.c b/lib/basename.c index 9a4f34001..c121364c8 100644 --- a/lib/basename.c +++ b/lib/basename.c @@ -1,5 +1,5 @@ /* Return the name-within-directory of a file name. - Copyright (C) 1996-1999, 2000, 2001 Free Software Foundation, Inc. + Copyright (C) 1996-1999, 2000-2002 Free Software Foundation, Inc. NOTE: The canonical source of this file is maintained with the GNU C Library. Bugs can be reported to bug-glibc@gnu.org. @@ -26,7 +26,7 @@ /* Specification. */ #include "basename.h" -#ifndef __GNU_LIBRARY__ +#ifndef __GLIBC__ #include #include diff --git a/lib/basename.h b/lib/basename.h index 6093e3892..617e0914a 100644 --- a/lib/basename.h +++ b/lib/basename.h @@ -1,5 +1,5 @@ /* Pathname hacking. - Copyright (C) 2001 Free Software Foundation, Inc. + Copyright (C) 2001-2002 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software; you can redistribute it and/or modify @@ -22,7 +22,7 @@ /* This is where basename() is declared. */ #include -#ifndef __GNU_LIBRARY__ +#ifndef __GLIBC__ /* When not using the GNU libc we use the basename implementation we provide here. */ extern char *gnu_basename PARAMS ((const char *)); -- 2.47.2