summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-09-12 14:21:44 -0700
committerJunio C Hamano <gitster@pobox.com>2012-09-12 14:21:44 -0700
commit067a1f552ee5ac8faf24aa547808b10bc54fae4b (patch)
treea5bb801f84c528dbd4df5f1645adef9cf11b9d34 /git-compat-util.h
parente15f390b154a7d703ac62e4cc84bf720eda74e2c (diff)
parent7f9e848cf82311792ccfb286e64846fe6f3d5476 (diff)
downloadgit-067a1f552ee5ac8faf24aa547808b10bc54fae4b.tar.gz
Merge branch 'js/compat-itimer'
Pieces to support compilation on __TANDEM. * js/compat-itimer: Add a no-op setitimer() wrapper
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index fd732d7243..24b5432462 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -167,6 +167,17 @@
extern int compat_mkdir_wo_trailing_slash(const char*, mode_t);
#endif
+#ifdef NO_STRUCT_ITIMERVAL
+struct itimerval {
+ struct timeval it_interval;
+ struct timeval it_value;
+}
+#endif
+
+#ifdef NO_SETITIMER
+#define setitimer(which,value,ovalue)
+#endif
+
#ifndef NO_LIBGEN_H
#include <libgen.h>
#else