| author | Bernd Ahlers <bernd@ba-net.org> | |
| Mon, 6 Apr 2009 17:26:37 +0000 (19:26 +0200) | ||
| committer | Junio C Hamano <gitster@pobox.com> | |
| Wed, 6 May 2009 05:19:14 +0000 (22:19 -0700) | ||
| commit | f697b33b015fcb0c90210840eb4ef8e6a18d4bdf | |
| tree | dee9b73dc1431f423d1246cd7bc7ad6a68f1aab8 | tree | snapshot |
| parent | 7713e053fd13a09b548cb65d99dfca986064955e | commit | diff |
Work around BSD whose typeof(tv.tv_sec) != time_t
According to POSIX, tv_sec is supposed to be a time_t, but OpenBSD
(and FreeBSD, too) defines it to be a long, which triggers a type
mismatch when a pointer to it is given to localtime_r().
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
According to POSIX, tv_sec is supposed to be a time_t, but OpenBSD
(and FreeBSD, too) defines it to be a long, which triggers a type
mismatch when a pointer to it is given to localtime_r().
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
| date.c | diff | blob | history |