From 7153690016ad24dd22aed74e065b747d030b4f82 Mon Sep 17 00:00:00 2001 From: "Deomid \"rojer\" Ryabkov" Date: Fri, 31 Jan 2020 09:50:32 +0000 Subject: [PATCH] Keep the size of the structure the same in non-SSL build PUBLISHED_FROM=8f93bee72bc18efff64354203ee6268f4f8e8768 --- docs/c-api/mg_net.h/struct_mg_connection.md | 2 ++ mongoose.h | 2 ++ src/mg_net.h | 2 ++ 3 files changed, 6 insertions(+) diff --git a/docs/c-api/mg_net.h/struct_mg_connection.md b/docs/c-api/mg_net.h/struct_mg_connection.md index 7a549885..6f888b8d 100644 --- a/docs/c-api/mg_net.h/struct_mg_connection.md +++ b/docs/c-api/mg_net.h/struct_mg_connection.md @@ -61,6 +61,8 @@ signature: | #if MG_ENABLE_SSL void *ssl_if_data; /* SSL library data. */ + #else + void *unused_ssl_if_data; /* To keep the size of the structure the same. */ #endif }; --- diff --git a/mongoose.h b/mongoose.h index 6dfc2425..2930d230 100644 --- a/mongoose.h +++ b/mongoose.h @@ -3635,6 +3635,8 @@ struct mg_connection { #if MG_ENABLE_SSL void *ssl_if_data; /* SSL library data. */ +#else + void *unused_ssl_if_data; /* To keep the size of the structure the same. */ #endif }; diff --git a/src/mg_net.h b/src/mg_net.h index 00378882..1ea9cdde 100644 --- a/src/mg_net.h +++ b/src/mg_net.h @@ -155,6 +155,8 @@ struct mg_connection { #if MG_ENABLE_SSL void *ssl_if_data; /* SSL library data. */ +#else + void *unused_ssl_if_data; /* To keep the size of the structure the same. */ #endif };