set various glibc flags that also are useful with mingw

for example, asprintf/vasprintf are unmasked with _GNU_SOURCE in mingw
This commit is contained in:
Brent Cook 2014-10-22 19:12:18 -05:00
parent eb26e56ba8
commit 8b695e534b

View File

@ -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