summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2015-01-14 12:37:21 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-01-14 12:37:21 -0800
commit63a0e83ea6ea1e9d46bfd9e8c1298c6ca9f077ee (patch)
treed94bc0e2cfca25409edee708d3e99f2f2d2b91c7 /git-compat-util.h
parentMerge branch 'ak/fewer-includes' (diff)
parentconfigure.ac: check for HMAC_CTX_cleanup (diff)
downloadtgif-63a0e83ea6ea1e9d46bfd9e8c1298c6ca9f077ee.tar.xz
Merge branch 'rh/autoconf-rhel3'
Build update for older RHEL. * rh/autoconf-rhel3: configure.ac: check for HMAC_CTX_cleanup configure.ac: check for clock_gettime and CLOCK_MONOTONIC configure.ac: check 'tv_nsec' field in 'struct stat'
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index dcecd857f1..eb9b0ff328 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -218,6 +218,9 @@ extern char *gitbasename(char *);
#include <openssl/err.h>
#undef MAC_OS_X_VERSION_MIN_REQUIRED
#undef __AVAILABILITY_MACROS_USES_AVAILABILITY
+#ifdef NO_HMAC_CTX_CLEANUP
+#define HMAC_CTX_cleanup HMAC_cleanup
+#endif
#endif
/* On most systems <netdb.h> would have given us this, but