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/stream/ngx_stream_upstream.h | 3 +++ src/stream/ngx_stream_upstream_round_robin.h | 3 +++ 2 files changed, 6 insertions(+) (limited to 'src/stream') diff --git a/src/stream/ngx_stream_upstream.h b/src/stream/ngx_stream_upstream.h index db2198417..5c99078a6 100644 --- a/src/stream/ngx_stream_upstream.h +++ b/src/stream/ngx_stream_upstream.h @@ -58,6 +58,9 @@ typedef struct { unsigned down:1; unsigned backup:1; + + NGX_COMPAT_BEGIN(4) + NGX_COMPAT_END } ngx_stream_upstream_server_t; diff --git a/src/stream/ngx_stream_upstream_round_robin.h b/src/stream/ngx_stream_upstream_round_robin.h index 75ffadd6f..9e1afc545 100644 --- a/src/stream/ngx_stream_upstream_round_robin.h +++ b/src/stream/ngx_stream_upstream_round_robin.h @@ -50,6 +50,9 @@ struct ngx_stream_upstream_rr_peer_s { #endif ngx_stream_upstream_rr_peer_t *next; + + NGX_COMPAT_BEGIN(25) + NGX_COMPAT_END }; -- cgit