summaryrefslogtreecommitdiff
path: root/compat/mingw.h
diff options
context:
space:
mode:
authorJohannes Sixt <johannes.sixt@telecom.at>2007-11-13 10:14:45 +0100
committerJohannes Sixt <johannes.sixt@telecom.at>2008-06-23 13:40:30 +0200
commit6072fc314e87d53bec7266df5b6c3db2c2c82829 (patch)
tree9fc2067e37ca090764d838dcccde73951ad63a05 /compat/mingw.h
parent82f8d969f581c4bd4a782565709466046d962d81 (diff)
downloadgit-6072fc314e87d53bec7266df5b6c3db2c2c82829.tar.gz
Windows: Implement setitimer() and sigaction().
The timer is implemented using a thread that calls the signal handler at regular intervals. We also replace Windows's signal() function because we must intercept that SIGALRM is set (which is used when a timer is canceled). Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Diffstat (limited to 'compat/mingw.h')
-rw-r--r--compat/mingw.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/compat/mingw.h b/compat/mingw.h
index fad855ef99..a369ade9e2 100644
--- a/compat/mingw.h
+++ b/compat/mingw.h
@@ -154,6 +154,9 @@ char *mingw_getcwd(char *pointer, int len);
int mingw_rename(const char*, const char*);
#define rename mingw_rename
+sig_handler_t mingw_signal(int sig, sig_handler_t handler);
+#define signal mingw_signal
+
/*
* git specific compatibility
*/