From 8b695e534bcf00a8180bca241e379065ee31745a Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Wed, 22 Oct 2014 19:12:18 -0500 Subject: set various glibc flags that also are useful with mingw for example, asprintf/vasprintf are unmasked with _GNU_SOURCE in mingw --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 961cf18..72f5160 100644 --- a/configure.ac +++ b/configure.ac @@ -27,6 +27,7 @@ case $host_os in ;; *mingw*) HOST_OS=win32 + CFLAGS="$CFLAGS -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -D_GNU_SOURCE" ;; *) ;; esac @@ -57,7 +58,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], ) CFLAGS="$save_cflags $AM_CFLAGS" -AC_CHECK_FUNC(strlcpy, +AC_CHECK_FUNC(strlcpy, AM_CONDITIONAL(NO_STRLCPY, false), AC_DEFINE(NO_STRLCPY) AM_CONDITIONAL(NO_STRLCPY, true)) -- cgit v1.2.3-55-g6feb