summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-04-08 18:59:05 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-04-08 18:59:06 (GMT)
commitbdb830c44567ebbdec497e6af21b87d4e43539cc (patch)
tree1a56e047fa97260f688394304d36b2ff3d1c6ace /git-compat-util.h
parent4e49d95ece7e023106349875df05fed0601920a5 (diff)
parentf80d1f95f0adf9909f42eb9e74546963daa4b0c1 (diff)
downloadgit-bdb830c44567ebbdec497e6af21b87d4e43539cc.zip
git-bdb830c44567ebbdec497e6af21b87d4e43539cc.tar.gz
git-bdb830c44567ebbdec497e6af21b87d4e43539cc.tar.bz2
Merge branch 'jk/commit-dates-parsing-fix'
Finishing touches for portability. * 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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 9158ed6..f6d3a46 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -716,4 +716,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