From 69f49ea0d70939340e8a2c28aae36c8e2f3fb41e Mon Sep 17 00:00:00 2001 From: Nguyễn Thái Ngọc Duy Date: Wed, 14 Apr 2010 06:58:30 +0200 Subject: win32: add signal routines and SIGALRM support The implementation for SIGALRM only because Git needs it (I think for progress display or something). Probably not hurt having it. Although the only thing needed here are stubs. --- include/mingw.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/mingw.h b/include/mingw.h index c5f72837b..0ff7f5442 100644 --- a/include/mingw.h +++ b/include/mingw.h @@ -109,9 +109,11 @@ struct sigaction { #define sigemptyset(x) (void)0 #define SA_RESTART 0 -NOIMPL(sigaction,int sig UNUSED_PARAM, struct sigaction *in UNUSED_PARAM, struct sigaction *out UNUSED_PARAM); +int sigaction(int sig, struct sigaction *in, struct sigaction *out); +sighandler_t mingw_signal(int sig, sighandler_t handler); NOIMPL(sigfillset,int *mask UNUSED_PARAM); +#define signal mingw_signal /* * stdio.h */ -- cgit v1.2.3-55-g6feb