X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppstats%2Fpppstats.c;h=d5f74b9911a8b2c133d2bcec4842147583ea3f31;hp=033a35b0dd64605e27b8128ac9d0825a03892ba6;hb=c291dcda5acdd3edb75c4127c7c001017ba3a876;hpb=3fbc219d75acba054c5c74dde080b5ddaf1b1e7e diff --git a/pppstats/pppstats.c b/pppstats/pppstats.c index 033a35b..d5f74b9 100644 --- a/pppstats/pppstats.c +++ b/pppstats/pppstats.c @@ -31,8 +31,12 @@ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ +#ifndef __STDC__ +#define const +#endif + #ifndef lint -static char rcsid[] = "$Id: pppstats.c,v 1.23 1998/07/07 04:23:04 paulus Exp $"; +static const char rcsid[] = "$Id: pppstats.c,v 1.27 1999/08/13 06:46:23 paulus Exp $"; #endif #include @@ -49,6 +53,11 @@ static char rcsid[] = "$Id: pppstats.c,v 1.23 1998/07/07 04:23:04 paulus Exp $"; #include #ifndef STREAMS +#if defined(_linux_) && defined(__powerpc__) \ + && (__GLIBC__ == 2 && __GLIBC_MINOR__ == 0) +/* kludge alert! */ +#undef __GLIBC__ +#endif #include /* *BSD, Linux, NeXT, Ultrix etc. */ #ifndef _linux_ #include