X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Ftime_r.m4;h=9ddbd0199d52e5ce24b4eb67fd2a1ca3859a439b;hb=03ea4328ae1ea7e985f7fd9a42ebf77bc64bd47c;hp=c3579fb3b89781b3fed6bb6c549c41ea75afe7d7;hpb=1602f0afed21be664fcf5c42d59db07cc22c56d6;p=gnulib.git diff --git a/m4/time_r.m4 b/m4/time_r.m4 index c3579fb3b..9ddbd0199 100644 --- a/m4/time_r.m4 +++ b/m4/time_r.m4 @@ -17,7 +17,7 @@ AC_DEFUN([gl_TIME_R], dnl Some systems don't declare localtime_r() and gmtime_r() if _REENTRANT is dnl not defined. - AC_CHECK_DECLS_ONCE([localtime_r]) + AC_CHECK_DECLS([localtime_r], [], [], [[#include ]]) if test $ac_cv_have_decl_localtime_r = no; then HAVE_DECL_LOCALTIME_R=0 fi