On Wed, Dec 22, 2010 at 06:07:42PM -0800, Ping Cheng wrote: > On Wed, Dec 22, 2010 at 5:16 PM, Gaetan Nadon <[email protected]> wrote: > > On Thu, 2010-12-23 at 10:52 +1000, Peter Hutterer wrote: > > > > To enable asprintf, _GNU_SOURCE must be defined before including stdio.h. > > Use AC_USE_SYSTEM_EXTENSIONS to define it for us in config.h > > > > Signed-off-by: Peter Hutterer <[email protected]> > > --- > > configure.ac | 1 + > > 1 files changed, 1 insertions(+), 0 deletions(-) > > > > diff --git a/configure.ac b/configure.ac > > index 0bb2482..c8296aa 100644 > > --- a/configure.ac > > +++ b/configure.ac > > @@ -33,6 +33,7 @@ AC_CONFIG_HEADERS([config.h]) > > # Initialize Automake > > AM_INIT_AUTOMAKE([foreign dist-bzip2]) > > AM_MAINTAINER_MODE > > +AC_USE_SYSTEM_EXTENSIONS > > > > # Initialize libtool > > AC_DISABLE_STATIC > > > > Reviewed-by: Gaetan Nadon <[email protected]> > > Tested-by: Ping Cheng <[email protected]> > > The asprintf warnings are gone. But we got: > > -------------------------- > wcmConfig.c:29:0: warning: "_GNU_SOURCE" redefined > ../config.h:83:0: note: this is the location of the previous definition > ............ > wcmValidateDevice.c:28:0: warning: "_GNU_SOURCE" redefined > ../config.h:83:0: note: this is the location of the previous definition > -------------------------- > > I guess we can live with those ones ;).
do you have my patch (include stdio.h) in the tree? the patch above replaces the stdio.h patch. Cheers, Peter ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Linuxwacom-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel
