Mercurial > hg > octave-nkf > gnulib-hg
changeset 16936:560f9e5a14bb
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.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Fri, 22 Jun 2012 08:42:13 -0700 |
parents | 498a2211d839 |
children | 1c62478e5da0 |
files | ChangeLog m4/time_r.m4 |
diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2012-06-22 Paul Eggert <eggert@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 <bruno@clisp.org> Write "Mac OS X" instead of "MacOS X".
--- a/m4/time_r.m4 +++ b/m4/time_r.m4 @@ -17,7 +17,7 @@ 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