Keep the size of the structure the same in non-SSL build

PUBLISHED_FROM=8f93bee72bc18efff64354203ee6268f4f8e8768
This commit is contained in:
Deomid "rojer" Ryabkov 2020-01-31 09:50:32 +00:00 committed by Cesanta Bot
parent f00b3a2b3a
commit 7153690016
3 changed files with 6 additions and 0 deletions

View File

@ -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
};
---

View File

@ -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
};

View File

@ -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
};