util: sigaction must be used under Cygwin.

This commit is contained in:
Daniel Beer 2011-07-22 09:22:07 +12:00
parent 067dd504a0
commit 49ed2bb990
1 changed files with 1 additions and 1 deletions

2
util.c
View File

@ -41,7 +41,7 @@ static void sigint_handler(int signum)
void ctrlc_init(void) void ctrlc_init(void)
{ {
#ifdef WIN32 #if defined(WIN32) || defined(__CYGWIN__)
signal(SIGINT, sigint_handler); signal(SIGINT, sigint_handler);
#else #else
const static struct sigaction siga = { const static struct sigaction siga = {