[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] time_r: fix typo that always overrode localtime_r decl
From: |
Paul Eggert |
Subject: |
[PATCH] time_r: fix typo that always overrode localtime_r decl |
Date: |
Fri, 22 Jun 2012 08:44:49 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 |
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 <address@hidden>
+
+ 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 <address@hidden>
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
- [PATCH] time_r: fix typo that always overrode localtime_r decl,
Paul Eggert <=