diff options
Diffstat (limited to 'demos')
-rw-r--r-- | demos/bio/saccept.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/demos/bio/saccept.c b/demos/bio/saccept.c index d44c6242a2..7936c23fbc 100644 --- a/demos/bio/saccept.c +++ b/demos/bio/saccept.c @@ -34,6 +34,9 @@ static void interrupt(int sig) static void sigsetup(void) { +#if defined(OPENSSL_SYS_WINDOWS) + signal(SIGINT, interrupt); +#else struct sigaction sa; /* @@ -43,6 +46,7 @@ static void sigsetup(void) sa.sa_handler = interrupt; sigemptyset(&sa.sa_mask); sigaction(SIGINT, &sa, NULL); +#endif } int main(int argc, char *argv[]) |