summaryrefslogtreecommitdiff
path: root/gl/m4/time_r.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4/time_r.m4')
-rw-r--r--gl/m4/time_r.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/gl/m4/time_r.m4 b/gl/m4/time_r.m4
index c3579fb3b8..9ddbd0199d 100644
--- a/gl/m4/time_r.m4
+++ b/gl/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