committed to trunk. r1967 On Sat, Feb 21, 2009 at 15:54, Justin Bronder <jsbron...@gentoo.org> wrote: > I get the following warning when compiling 3.1.1 and 3.1.2. Following the way > that __USE_GNU is defined in libmetrics/linux/metrics.c, the attached patch > removes this warning. > > if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. > -I.. -I../../lib -I../../include -march=nocona -O2 -pipe -Wall -MT > metrics.lo -MD -MP -MF ".deps/metrics.Tpo" -c -o metrics.lo metrics.c; \ > then mv -f ".deps/metrics.Tpo" ".deps/metrics.Plo"; else rm -f > ".deps/metrics.Tpo"; exit 1; fi > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../../lib -I../../include -march=nocona > -O2 -pipe -Wall -MT metrics.lo -MD -MP -MF .deps/metrics.Tpo -c metrics.c > -fPIC -DPIC -o .libs/metrics.o > metrics.c: In function 'update_ifdata': > metrics.c:204: warning: implicit declaration of function 'isblank' > > > diff -urN a/ganglia-3.1.1/libmetrics/linux/metrics.c > b/ganglia-3.1.1/libmetrics/linux/metrics.c > --- a/ganglia-3.1.1/libmetrics/linux/metrics.c 2008-08-25 13:44:57.000000000 > -0400 > +++ b/ganglia-3.1.1/libmetrics/linux/metrics.c 2008-11-18 21:33:01.370635031 > -0500 > @@ -3,6 +3,9 @@ > #ifndef __USE_GNU > #define __USE_GNU > #endif > +#ifndef __USE_ISOC99 > +#define __USE_ISOC99 > +#endif > #include <string.h> > #include <time.h> > #include <unistd.h> > > > -- > Justin Bronder > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Ganglia-developers mailing list > Ganglia-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ganglia-developers > >
-- Jesse Becker GPG Fingerprint -- BD00 7AA4 4483 AFCC 82D0 2720 0083 0931 9A2B 06A2 ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Ganglia-developers mailing list Ganglia-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-developers