diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-04-09 11:59:38 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-04-09 11:59:38 -0700 |
commit | b8a30194dbea86228aa55fb270f3d704cf7924f4 (patch) | |
tree | 2a844dbab6da69248532e464e1a16547fe047022 /git-compat-util.h | |
parent | 693b407077bf3739b3609400845e3f6854830ee4 (diff) | |
parent | f80d1f95f0adf9909f42eb9e74546963daa4b0c1 (diff) | |
download | git-b8a30194dbea86228aa55fb270f3d704cf7924f4.tar.gz |
Merge branch 'jk/commit-dates-parsing-fix' into maint
* jk/commit-dates-parsing-fix:
t4212: loosen far-in-future test for AIX
date: recognize bogus FreeBSD gmtime output
Diffstat (limited to 'git-compat-util.h')
-rw-r--r-- | git-compat-util.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h index cbd86c37f5..d493a8c67a 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -721,4 +721,11 @@ void warn_on_inaccessible(const char *path); /* Get the passwd entry for the UID of the current process. */ struct passwd *xgetpwuid_self(void); +#ifdef GMTIME_UNRELIABLE_ERRORS +struct tm *git_gmtime(const time_t *); +struct tm *git_gmtime_r(const time_t *, struct tm *); +#define gmtime git_gmtime +#define gmtime_r git_gmtime_r +#endif + #endif |