diff --git a/programs/ssl/ssl_server2.c b/programs/ssl/ssl_server2.c index 717f788e1f..73b308f0c8 100644 --- a/programs/ssl/ssl_server2.c +++ b/programs/ssl/ssl_server2.c @@ -568,9 +568,10 @@ int psk_callback( void *p_info, ssl_context *ssl, } #endif /* POLARSSL_KEY_EXCHANGE__SOME__PSK_ENABLED */ -#if !defined(_WIN32) -/* Interruption handler to ensure clean exit (for valgrind testing) */ static int listen_fd; + +/* Interruption handler to ensure clean exit (for valgrind testing) */ +#if !defined(_WIN32) static int received_sigterm = 0; void term_handler( int sig ) {