瀏覽代碼

Fixed non-debug build without HTTPS

Evgeny Grin (Karlson2k) 2 年之前
父節點
當前提交
5587f1e043
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/microhttpd/response.c

+ 2 - 2
src/microhttpd/response.c

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