From 603de9af4389d099e650db211743e4cf0980de7b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wolfgang=20St=C3=B6ggl?= Date: Thu, 7 Dec 2017 21:43:53 +0100 Subject: [PATCH] Fix ctime_r configure error (MinGW-w64) - configure.ac: include pthread.h inside AC_LANG_PROGRAM for ctime_r check if __MINGW32__ is defined Fixes: checking if ctime_r need special care to act posixly correct... configure: error: Can't figure how to compile ctime_r --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 207c6cc7..991109b7 100644 --- a/configure.ac +++ b/configure.ac @@ -450,7 +450,10 @@ AC_LINK_IFELSE( ], [ AC_LINK_IFELSE( [AC_LANG_PROGRAM( - [[#include ]], + [[#ifdef __MINGW32__ +#include +#endif +#include ]], [[ctime_r(NULL,NULL)]])], [AC_MSG_RESULT(no)], [AC_MSG_ERROR([Can't figure how to compile ctime_r])] -- 2.47.2