- Prevented compiler warning
diff --git a/programs/ssl/ssl_fork_server.c b/programs/ssl/ssl_fork_server.c
index 87c5e9c..e14da8b 100644
--- a/programs/ssl/ssl_fork_server.c
+++ b/programs/ssl/ssl_fork_server.c
@@ -51,6 +51,25 @@
"<h2>PolarSSL Test Server</h2>\r\n" \
"<p>Successful connection using: %s</p>\r\n"
+#if !defined(POLARSSL_BIGNUM_C) || !defined(POLARSSL_CERTS_C) || \
+ !defined(POLARSSL_HAVEGE_C) || !defined(POLARSSL_SSL_TLS_C) || \
+ !defined(POLARSSL_SSL_SRV_C) || !defined(POLARSSL_NET_C) || \
+ !defined(POLARSSL_RSA_C)
+int main( void )
+{
+ printf("POLARSSL_BIGNUM_C and/or POLARSSL_CERTS_C and/or POLARSSL_HAVEGE_C "
+ "and/or POLARSSL_SSL_TLS_C and/or POLARSSL_SSL_SRV_C and/or "
+ "POLARSSL_NET_C and/or POLARSSL_RSA_C not defined.\n");
+ return( 0 );
+}
+#elif defined(WIN32)
+int main( void )
+{
+ printf("WIN32 defined. This application requires fork() and signals "
+ "to work correctly.\n");
+ return( 0 );
+}
+#else
/*
* Computing a "safe" DH-1024 prime can take a very
* long time, so a precomputed value is provided below.
@@ -173,25 +192,6 @@
return( 0 );
}
-#if !defined(POLARSSL_BIGNUM_C) || !defined(POLARSSL_CERTS_C) || \
- !defined(POLARSSL_HAVEGE_C) || !defined(POLARSSL_SSL_TLS_C) || \
- !defined(POLARSSL_SSL_SRV_C) || !defined(POLARSSL_NET_C) || \
- !defined(POLARSSL_RSA_C)
-int main( void )
-{
- printf("POLARSSL_BIGNUM_C and/or POLARSSL_CERTS_C and/or POLARSSL_HAVEGE_C "
- "and/or POLARSSL_SSL_TLS_C and/or POLARSSL_SSL_SRV_C and/or "
- "POLARSSL_NET_C and/or POLARSSL_RSA_C not defined.\n");
- return( 0 );
-}
-#elif defined(WIN32)
-int main( void )
-{
- printf("WIN32 defined. This application requires fork() and signals "
- "to work correctly.\n");
- return( 0 );
-}
-#else
int main( void )
{
int ret, len, cnt = 0, pid;