aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2014-10-22 19:12:18 -0500
committerBrent Cook <bcook@openbsd.org>2014-10-22 19:12:18 -0500
commit8b695e534bcf00a8180bca241e379065ee31745a (patch)
treeb575f4865156b0e0e017c91507008ab6a47716cf
parenteb26e56ba8557eeb9c417be83b92c6fc8850943c (diff)
downloadportable-8b695e534bcf00a8180bca241e379065ee31745a.tar.gz
portable-8b695e534bcf00a8180bca241e379065ee31745a.tar.bz2
portable-8b695e534bcf00a8180bca241e379065ee31745a.zip
set various glibc flags that also are useful with mingw
for example, asprintf/vasprintf are unmasked with _GNU_SOURCE in mingw
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
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
27 ;; 27 ;;
28 *mingw*) 28 *mingw*)
29 HOST_OS=win32 29 HOST_OS=win32
30 CFLAGS="$CFLAGS -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -D_GNU_SOURCE"
30 ;; 31 ;;
31 *) ;; 32 *) ;;
32esac 33esac
@@ -57,7 +58,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
57) 58)
58CFLAGS="$save_cflags $AM_CFLAGS" 59CFLAGS="$save_cflags $AM_CFLAGS"
59 60
60AC_CHECK_FUNC(strlcpy, 61AC_CHECK_FUNC(strlcpy,
61 AM_CONDITIONAL(NO_STRLCPY, false), 62 AM_CONDITIONAL(NO_STRLCPY, false),
62 AC_DEFINE(NO_STRLCPY) 63 AC_DEFINE(NO_STRLCPY)
63 AM_CONDITIONAL(NO_STRLCPY, true)) 64 AM_CONDITIONAL(NO_STRLCPY, true))