diff options
author | Bruno Haible <bruno@clisp.org> | 2002-04-26 15:13:36 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:07:54 +0200 |
commit | 5e6d385b78c3424c3c7387088ad81b9db2c12774 (patch) | |
tree | 0b9a4b01010a7bc57c305c883d69eeff64882c28 | |
parent | 5c3d827e312b44a05013642e6d4c0efb24c88977 (diff) | |
download | external_gettext-5e6d385b78c3424c3c7387088ad81b9db2c12774.zip external_gettext-5e6d385b78c3424c3c7387088ad81b9db2c12774.tar.gz external_gettext-5e6d385b78c3424c3c7387088ad81b9db2c12774.tar.bz2 |
Portability to Linux libc5.
-rw-r--r-- | lib/ChangeLog | 6 | ||||
-rw-r--r-- | lib/basename.c | 4 | ||||
-rw-r--r-- | lib/basename.h | 4 |
3 files changed, 10 insertions, 4 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog index b3713c7..29a0039 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,9 @@ +2002-04-26 Bruno Haible <bruno@clisp.org> + + * basename.h: Use __GLIBC__ instead of __GNU_LIBRARY__, because + Linux libc5 doesn't declare basename() properly. + * basename.c: Likewise. + 2002-04-24 Bruno Haible <bruno@clisp.org> * gettext-0.11.2 released. diff --git a/lib/basename.c b/lib/basename.c index 9a4f340..c121364 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 <stdio.h> #include <assert.h> diff --git a/lib/basename.h b/lib/basename.h index 6093e38..617e091 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 <haible@clisp.cons.org>, 2001. This program is free software; you can redistribute it and/or modify @@ -22,7 +22,7 @@ /* This is where basename() is declared. */ #include <string.h> -#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 *)); |