changeset 14708:436a17cfce36

tzset: Fix gettimeofday wrapper on Solaris 2.6. * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
author Bruno Haible <bruno@clisp.org>
date Sun, 08 May 2011 18:09:39 +0200
parents 5cd365083be8
children 8fd3118c13f8
files ChangeLog m4/tzset.m4
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-05-08  Bruno Haible  <bruno@clisp.org>
+
+	tzset: Fix gettimeofday wrapper on Solaris 2.6.
+	* m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
+	gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
+
 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
 
 	ignore-value, verify: Omit include files from lib_SOURCES.
--- a/m4/tzset.m4
+++ b/m4/tzset.m4
@@ -1,4 +1,4 @@
-# serial 4
+# serial 5
 
 # Copyright (C) 2003, 2007, 2009-2011 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
@@ -49,6 +49,7 @@
     [Define to 1 if you have run the test for working tzset.])
 
   if test $gl_cv_func_tzset_clobber = yes; then
+    REPLACE_GETTIMEOFDAY=1
     gl_GETTIMEOFDAY_REPLACE_LOCALTIME
 
     AC_DEFINE([tzset], [rpl_tzset],