Commit fa5c8d1c51 for openssl.org

commit fa5c8d1c513308e5e495f88653fc86ebc0b3113e
Author: Tomas Mraz <tomas@openssl.foundation>
Date:   Wed Sep 16 12:24:44 2026 +0200

    apps/server.c: Do not declare use_sendfile and use_zc_sendfile without ktls

    It is unused otherwise.

    Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
    Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
    Merge-date: Thu Sep 17 14:05:04 2026
    Merged-from: https://github.com/openssl/openssl/pull/32821

diff --git a/apps/s_server.c b/apps/s_server.c
index f9ff9b769b..57c253d05a 100644
--- a/apps/s_server.c
+++ b/apps/s_server.c
@@ -134,8 +134,10 @@ static int keymatexportlen = 20;

 static int async = 0;

-static int use_sendfile = 0;
-static int use_zc_sendfile = 0;
+#ifndef OPENSSL_NO_KTLS
+static int use_sendfile;
+static int use_zc_sendfile;
+#endif

 static const char *session_id_prefix = NULL;

@@ -1778,8 +1780,10 @@ int s_server_main(int argc, char *argv[])
     s_quiet = 0;
     s_brief = 0;
     async = 0;
+#ifndef OPENSSL_NO_KTLS
     use_sendfile = 0;
     use_zc_sendfile = 0;
+#endif

     port = OPENSSL_strdup(PORT);
     cctx = SSL_CONF_CTX_new();