Fix a problem seen only on nonconforming systems whereby ls.c's
authorJim Meyering <jim@meyering.net>
Mon, 27 May 2002 16:42:55 +0000 (16:42 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 27 May 2002 16:42:55 +0000 (16:42 +0000)
commiteef8f2f400ab16634ead7c2d233686fcb58e16c2
tree9428a7d8c386d00f6966016ed338e4e876c5048a
parent905a917dc381a40d4b0518fe19adfedc0ad0f0ce
Fix a problem seen only on nonconforming systems whereby ls.c's
use of localtime, and then of gettimeofday would cause trouble:
the localtime call used to initialize rpl_gettimeofday's save
mechanism would clobber ls's current local time information so
that in any long listing the first file would always be listed
with date 1970-01-01.  Analysis by Volker Borchert.

(localtime): Undefine.
(rpl_localtime): New function.
lib/gettimeofday.c