Răsfoiți Sursa

Fixed debug build without TLS support

Evgeny Grin (Karlson2k) 2 ani în urmă
părinte
comite
c101b159ea
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 3 3
      src/microhttpd/response.c

+ 3 - 3
src/microhttpd/response.c

@@ -1933,9 +1933,9 @@ enum MHD_Result
 MHD_response_execute_upgrade_ (struct MHD_Response *response,
 MHD_response_execute_upgrade_ (struct MHD_Response *response,
                                struct MHD_Connection *connection)
                                struct MHD_Connection *connection)
 {
 {
-#ifdef HTTPS_SUPPORT
-  struct MHD_Daemon *daemon = connection->daemon;
-#endif /* HTTPS_SUPPORT */
+#if defined(HTTPS_SUPPORT) || defined(_DEBUG)
+  struct MHD_Daemon *const daemon = connection->daemon;
+#endif /* HTTPS_SUPPORT || _DEBUG */
   struct MHD_UpgradeResponseHandle *urh;
   struct MHD_UpgradeResponseHandle *urh;
   size_t rbo;
   size_t rbo;