[PATCH libXt] asprintf needs _GNU_SOURCE on some platforms
Alan Coopersmith
alan.coopersmith at oracle.com
Mon Jan 26 09:16:19 PST 2015
On 01/26/15 08:51 AM, Rob Clark wrote:
> Fixes a build break noticed on fedora 21 on arm (although I doubt that
> is in any way arch specific).
>
> http://tinderbox.x.org/builds/2015-01-26-0012/logs/libXt/#build
https://bugs.freedesktop.org/show_bug.cgi?id=88800 reported this as well this
morning but did not specify a platform.
> diff --git a/configure.ac b/configure.ac
> index 3633ec6..e60e88d 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -66,7 +66,7 @@ fi
> AC_SUBST([CC_FOR_BUILD])
> DEFAULT_CPPFLAGS_FOR_BUILD="${CPPFLAGS}"
> AC_CHECK_FUNC(asprintf,
> - [DEFAULT_CPPFLAGS_FOR_BUILD="${DEFAULT_CPPFLAGS_FOR_BUILD} -DHAVE_ASPRINTF"])
> + [DEFAULT_CPPFLAGS_FOR_BUILD="${DEFAULT_CPPFLAGS_FOR_BUILD} -DHAVE_ASPRINTF -D_GNU_SOURCE"])
> CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${DEFAULT_CPPFLAGS_FOR_BUILD}}
> AC_SUBST(CPPFLAGS_FOR_BUILD)
> DEFAULT_CFLAGS_FOR_BUILD="${CFLAGS} ${CWARNFLAGS}"
>
Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>
--
-Alan Coopersmith- alan.coopersmith at oracle.com
Oracle Solaris Engineering - http://blogs.oracle.com/alanc
More information about the xorg-devel
mailing list