From: Wolfgang Stöggl Date: Thu, 7 Dec 2017 20:43:53 +0000 (+0100) Subject: Fix ctime_r configure error (MinGW-w64) X-Git-Tag: v1.7.1~82^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F849%2Fhead;p=thirdparty%2Frrdtool-1.x.git 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 --- 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])]