bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] mktime: correct setting of REPLACE_MKTIME


From: Jim Meyering
Subject: [PATCH] mktime: correct setting of REPLACE_MKTIME
Date: Wed, 29 Jul 2009 19:34:13 +0200

Without this change, updating coreutils to use latest gnulib
resulted in link errors due to lack of definition of rpl_mktime
on systems like gnu/linux for which the replacement is not used.

>From 5dac0403eb27bfc45fa071ec60f37d7df1dced6d Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Wed, 29 Jul 2009 19:30:21 +0200
Subject: [PATCH] mktime: correct setting of REPLACE_MKTIME

* m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
---
 ChangeLog    |    3 +++
 m4/mktime.m4 |    2 ++
 2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 2be276a..9c386f5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2009-07-29  Jim Meyering  <address@hidden>

+       mktime: correct setting of REPLACE_MKTIME
+       * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
+
        update-copyright: new module
        * modules/update-copyright: New file.
        * build-aux/update-copyright: New file.
diff --git a/m4/mktime.m4 b/m4/mktime.m4
index 3eeace5..d3e99f9 100644
--- a/m4/mktime.m4
+++ b/m4/mktime.m4
@@ -221,6 +221,8 @@ AC_DEFUN([gl_FUNC_MKTIME],
   if test $ac_cv_func_working_mktime = no; then
     REPLACE_MKTIME=1
     gl_PREREQ_MKTIME
+  else
+    REPLACE_MKTIME=0
   fi
 ])

--
1.6.4.rc3.201.gd9d59




reply via email to

[Prev in Thread] Current Thread [Next in Thread]