From bc3e54c70dcca86c7d1cd8645b979070b42a5d25 Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Mon, 18 Aug 2014 14:36:17 +0200
Subject: [PATCH] Fix overly rigorous defines in ssl_server2.c
---
programs/ssl/ssl_server2.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
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 )
{