ChangeLog | 7 +++++++ m4/time_r.m4 | 2 +- 2 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog index a12bccf..74354d5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2012-06-22 Paul Eggert <egg...@cs.ucla.edu> + + time_r: fix typo that always overrode localtime_r decl + * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not + AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>, + not in a standard include. + 2012-06-22 Bruno Haible <br...@clisp.org> Write "Mac OS X" instead of "MacOS X". diff --git a/m4/time_r.m4 b/m4/time_r.m4 index c3579fb..9ddbd01 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 <time.h>]]) if test $ac_cv_have_decl_localtime_r = no; then HAVE_DECL_LOCALTIME_R=0 fi -- 1.7.6.5