Use -D_POSIX_THREAD_SAFE_FUNCTIONS for MinGW build
authorEric Biggers <ebiggers3@gmail.com>
Fri, 1 May 2015 00:38:21 +0000 (19:38 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Fri, 1 May 2015 00:38:21 +0000 (19:38 -0500)
The latest MinGW only exposes gmtime_r() if this is defined.

configure.ac

index 0ac6c99b852613a32c40dc469366465786bc9966..0c9bca908b024ca622711c6605ef595a330f72dc 100644 (file)
@@ -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"