From c40de746829971f2edbf9faeae64d4516cb5466e Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Thu, 29 Sep 2016 15:28:24 +0300 Subject: Introduced the NGX_COMPAT macro. When enabled, some structures are padded to be size compatible with their NGINX Plus versions. --- src/http/ngx_http_upstream.h | 9 +++++++++ src/http/ngx_http_upstream_round_robin.h | 3 +++ 2 files changed, 12 insertions(+) (limited to 'src/http') diff --git a/src/http/ngx_http_upstream.h b/src/http/ngx_http_upstream.h index e079eaed3..e6bf3c983 100644 --- a/src/http/ngx_http_upstream.h +++ b/src/http/ngx_http_upstream.h @@ -102,6 +102,9 @@ typedef struct { unsigned down:1; unsigned backup:1; + + NGX_COMPAT_BEGIN(6) + NGX_COMPAT_END } ngx_http_upstream_server_t; @@ -229,6 +232,9 @@ typedef struct { #endif ngx_str_t module; + + NGX_COMPAT_BEGIN(2) + NGX_COMPAT_END } ngx_http_upstream_conf_t; @@ -382,6 +388,9 @@ struct ngx_http_upstream_s { unsigned request_sent:1; unsigned request_body_sent:1; unsigned header_sent:1; + + NGX_COMPAT_BEGIN(1) + NGX_COMPAT_END }; diff --git a/src/http/ngx_http_upstream_round_robin.h b/src/http/ngx_http_upstream_round_robin.h index 326e84904..92aa1a60c 100644 --- a/src/http/ngx_http_upstream_round_robin.h +++ b/src/http/ngx_http_upstream_round_robin.h @@ -50,6 +50,9 @@ struct ngx_http_upstream_rr_peer_s { #endif ngx_http_upstream_rr_peer_t *next; + + NGX_COMPAT_BEGIN(32) + NGX_COMPAT_END }; -- cgit