util: sigaction must be used under Cygwin.
This commit is contained in:
parent
067dd504a0
commit
49ed2bb990
2
util.c
2
util.c
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in New Issue