Hello!
This unbreaks the localtime_r call on OpenBSD/sparc64 and removes
the following compiler warning.
"passing arg 1 of `localtime_r' from incompatible pointer type"
---
date.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
From: Tony Finch <dot@dotat.at> Date: 2016-06-15 22:46:42
Jeff King [Mon, Apr 06, 2009 at 03:06:58PM -0400] wrote:
Hmph. According to POSIX, tv_sec _is_ a time_t. But I see on FreeBSD,
also, it is actually a "long". So I think this fix makes sense.
FreeBSD-7 has time_t tv_sec.
Tony.
--
f.anthony.n.finch [off-list ref] http://dotat.at/
GERMAN BIGHT HUMBER: SOUTHWEST 5 TO 7. MODERATE OR ROUGH. SQUALLY SHOWERS.
MODERATE OR GOOD.
From: Jeff King <hidden> Date: 2016-06-15 22:46:43
On Wed, May 06, 2009 at 03:26:36PM +0100, Tony Finch wrote:
Jeff King [Mon, Apr 06, 2009 at 03:06:58PM -0400] wrote:
quoted
Hmph. According to POSIX, tv_sec _is_ a time_t. But I see on FreeBSD,
also, it is actually a "long". So I think this fix makes sense.
FreeBSD-7 has time_t tv_sec.
Thanks for the data point (I had looked at FreeBSD 6). I think this fix
still makes sense, though, as it should work on either type (and we
need to support the older platforms, too).
-Peff