Skip to contentSkip to conversation

Support for setitimer() on platforms lacking it

PATCH Joachim Schmitz 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

---
Seems it needs my mkdir() "ignoretraile slash" patch first to be applied cleanly... It is independent of it otherwise.

 git-compat-util.h | 5 +++++
 1 file changed, 5 insertions(+)
git-compat-util.h +5 -0
index 34f040f..a047221 100644
@@ -162,6 +162,11 @@
 #define probe_utf8_pathname_composition(a,b)
 #endif
 
+#ifdef NO_SETITIMER
+#define setitimer(a,b,c) git_setitimer((a),(b),(c))
+extern int git_setitimer(int, const struct itimerval *, struct itimerval *);
+#endif
+
 #ifdef MKDIR_WO_TRAILING_SLASH
 #define mkdir(a,b) compat_mkdir_wo_trailing_slash((a),(b))
 extern int compat_mkdir_wo_trailing_slash(const char*, mode_t);
Signature · 1 line
1.7.12