summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorRob Clark <robdclark@gmail.com>2015-01-26 11:51:48 -0500
committerRob Clark <robdclark@gmail.com>2015-01-26 13:00:40 -0500
commit33a6d9dc30188c02a3ec703153728b31d458ec1e (patch)
tree9da91a192438712804147940fb10f7558874b193 /configure.ac
parentca04f74887d53c75e794f643f7e860ba588c3a57 (diff)
asprintf needs _GNU_SOURCE on some platforms
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 Signed-off-by: Rob Clark <robdclark@gmail.com> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
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}"