From c2c39a6664f0c14c41d2911c891d47cf421d0523 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Tue, 26 Aug 2014 14:48:45 +0200 Subject: [PATCH 4/4] define _GNU_SOURCE to get asprintf's definition in mingw32 Signed-off-by: Nikos Mavrogiannopoulos --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 102fb83..0953c12 100644 --- a/configure.ac +++ b/configure.ac @@ -54,6 +54,8 @@ case $host_os in # For GetVolumeInformationByHandleW() which is Vista+ AC_DEFINE(_WIN32_WINNT, 0x600, [Windows API version]) have_win=yes + # For asprintf() + AC_DEFINE(_GNU_SOURCE, 1, [_GNU_SOURCE]) ;; *) # On FreeBSD the only way to get vsyslog() visible is to define -- 1.9.3