i variable is used on some platforms
[openssl.git] / apps / s_socket.c
index a9228f42a6b2b433ffdb263cd0b7a6fe59422e9c..57474753993d5334f8b8d737561fc06467e1f437 100644 (file)
@@ -400,6 +400,7 @@ redoit:
        if (ret == INVALID_SOCKET)
                {
 #if defined(OPENSSL_SYS_WINDOWS) || (defined(OPENSSL_SYS_NETWARE) && !defined(NETWARE_BSDSOCK))
+               int i;
                i=WSAGetLastError();
                BIO_printf(bio_err,"accept error %d\n",i);
 #else