From 3f7d65fbff0773cba736a929667086712884d222 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Thu, 30 Apr 2015 19:38:21 -0500 Subject: [PATCH] Use -D_POSIX_THREAD_SAFE_FUNCTIONS for MinGW build The latest MinGW only exposes gmtime_r() if this is defined. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 0ac6c99b..0c9bca90 100644 --- a/configure.ac +++ b/configure.ac @@ -33,7 +33,7 @@ case "$host_os" in mingw*) # Native Windows WINDOWS_NATIVE_BUILD="yes" - PLATFORM_CPPFLAGS="-D_POSIX -DUNICODE -D_UNICODE -D_CRT_NON_CONFORMING_SWPRINTFS" + PLATFORM_CPPFLAGS="-D_POSIX -D_POSIX_THREAD_SAFE_FUNCTIONS -DUNICODE -D_UNICODE -D_CRT_NON_CONFORMING_SWPRINTFS" PLATFORM_CFLAGS="-municode -mno-ms-bitfields" PLATFORM_LDFLAGS="-no-undefined" WITH_NTFS_3G_DEFAULT="no" -- 2.43.0