From 953c3980868a75bd734a8bf4e4b41df73efb336a Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 21 May 2002 18:32:01 +0000 Subject: [PATCH] Portability to BeOS. --- lib/ChangeLog | 6 ++++++ lib/basename.c | 2 +- lib/basename.h | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index c5a54ce48..6c52356b1 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,9 @@ +2002-05-18 Bruno Haible + + * basename.h: Use __GLIBC__ >= 2, because BeOS (which defines __GLIBC__ + to -2) doesn't declare basename() properly. + * basename.c: Likewise. + 2002-05-18 Bruno Haible * Makefile.am (RM): New variable. diff --git a/lib/basename.c b/lib/basename.c index c121364c8..6daf723a5 100644 --- a/lib/basename.c +++ b/lib/basename.c @@ -26,7 +26,7 @@ /* Specification. */ #include "basename.h" -#ifndef __GLIBC__ +#if !(__GLIBC__ >= 2) #include #include diff --git a/lib/basename.h b/lib/basename.h index 617e0914a..38530ec1f 100644 --- a/lib/basename.h +++ b/lib/basename.h @@ -22,7 +22,7 @@ /* This is where basename() is declared. */ #include -#ifndef __GLIBC__ +#if !(__GLIBC__ >= 2) /* When not using the GNU libc we use the basename implementation we provide here. */ extern char *gnu_basename PARAMS ((const char *)); -- 2.47.2