Mercurial > hg > octave-kai > gnulib-hg
changeset 11795:ab844f6098c1
Avoid compilation error in C++ mode.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 09 Aug 2009 09:15:28 +0200 |
parents | ad491ad80504 |
children | b9a762d04d6c |
files | ChangeLog lib/gettimeofday.c |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-08-08 Bruno Haible <bruno@clisp.org> + + Avoid compilation error in C++ mode. + * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument. + Reported by Sam Steingold <sds@gnu.org>. + 2009-08-08 Bruno Haible <bruno@clisp.org> * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
--- a/lib/gettimeofday.c +++ b/lib/gettimeofday.c @@ -1,6 +1,6 @@ /* Provide gettimeofday for systems that don't have it or for which it's broken. - Copyright (C) 2001, 2002, 2003, 2005, 2006, 2007 Free Software + Copyright (C) 2001, 2002, 2003, 2005, 2006, 2007, 2009 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify @@ -111,7 +111,7 @@ struct tm save = *localtime_buffer_addr; # endif - int result = gettimeofday (tv, tz); + int result = gettimeofday (tv, (struct timezone *) tz); # if GETTIMEOFDAY_CLOBBERS_LOCALTIME *localtime_buffer_addr = save;