From 1620756ad44e985a0fe1581bd7a9443d0653a8f0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Runarvot?= <loic.runarvot@trust-in-soft.com>
Date: Fri, 19 Jun 2015 13:38:12 +0200
Subject: [PATCH] s_server.c: fix ifdef FIONBIO

---
 apps/s_server.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/apps/s_server.c b/apps/s_server.c
index 3143078..d6dfa40 100644
--- a/apps/s_server.c
+++ b/apps/s_server.c
@@ -392,7 +392,9 @@ static void s_server_init(void)
     s_cert_file2 = TEST_CERT2;
     s_key_file2 = NULL;
     ctx2 = NULL;
+#ifdef FIONBIO
     s_nbio = 0;
+#endif
     s_nbio_test = 0;
     ctx = NULL;
     www = 0;
@@ -1200,11 +1202,16 @@ int s_server_main(int argc, char *argv[])
         case OPT_VERIFYCAFILE:
             vfyCAfile = opt_arg();
             break;
+#ifdef FIONBIO
         case OPT_NBIO:
             s_nbio = 1;
             break;
+#endif
         case OPT_NBIO_TEST:
-            s_nbio = s_nbio_test = 1;
+#ifdef FIONBIO
+            s_nbio =
+#endif
+            s_nbio_test = 1;
             break;
         case OPT_IGN_EOF:
             s_ign_eof = 1;
-- 
2.1.4

