From 0062f5431d5efe719d97db98a21146a95a23044a Mon Sep 17 00:00:00 2001 From: tobiasb Date: Fri, 5 Jan 2007 03:45:50 +0000 Subject: [PATCH] - replaced prototype for basename() by #include - include only if __linux__ is defined, try otherwise --- lib/libisdn.h | 13 +++++++++++-- lib/libtools.h | 13 +++++++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/lib/libisdn.h b/lib/libisdn.h index 89b06469..41a76d65 100644 --- a/lib/libisdn.h +++ b/lib/libisdn.h @@ -1,5 +1,5 @@ -/* $Id: libisdn.h,v 1.14 2002/01/31 20:03:59 paul Exp $ +/* $Id: libisdn.h,v 1.15 2007/01/05 03:45:50 tobiasb Exp $ * * ISDN accounting for isdn4linux. * @@ -20,6 +20,11 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * $Log: libisdn.h,v $ + * Revision 1.15 2007/01/05 03:45:50 tobiasb + * - replaced prototype for basename() by #include + * - include only if __linux__ is defined, try + * otherwise + * * Revision 1.14 2002/01/31 20:03:59 paul * Add "#define CCODE_OTHER 9999" for defining behaviour in * non-specified countries. @@ -78,7 +83,11 @@ #ifndef _LIB_H_ #define _LIB_H_ +#ifdef __linux__ #include +#else +#include +#endif #include "policy.h" #include "conffile.h" @@ -90,7 +99,7 @@ /****************************************************************************/ -extern char *basename __P((__const char *__name)); +#include /****************************************************************************/ diff --git a/lib/libtools.h b/lib/libtools.h index 3770114b..478a7ac2 100644 --- a/lib/libtools.h +++ b/lib/libtools.h @@ -1,4 +1,4 @@ -/* $Id: libtools.h,v 1.8 1998/10/13 22:17:25 luethje Exp $ +/* $Id: libtools.h,v 1.9 2007/01/05 03:45:50 tobiasb Exp $ * * ISDN accounting for isdn4linux. * @@ -19,6 +19,11 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * $Log: libtools.h,v $ + * Revision 1.9 2007/01/05 03:45:50 tobiasb + * - replaced prototype for basename() by #include + * - include only if __linux__ is defined, try + * otherwise + * * Revision 1.8 1998/10/13 22:17:25 luethje * isdnlog: evaluate the variable PATH for program starts. * @@ -44,11 +49,15 @@ #ifndef _LIB_TOOLS_H_ #define _LIB_TOOLS_H_ +#ifdef __linux__ #include +#else +#include +#endif /****************************************************************************/ -extern char *basename __P((__const char *__name)); +#include /****************************************************************************/