summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_upstream.h
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2016-09-29 15:28:24 +0300
committerRuslan Ermilov <ru@nginx.com>2016-09-29 15:28:24 +0300
commitc40de746829971f2edbf9faeae64d4516cb5466e (patch)
treeece4a42e478e892423a571fd94a19c0ae1f5ff63 /src/http/ngx_http_upstream.h
parent833d03a0a2f9fa62de0f347a08c36a787bcdd8e2 (diff)
downloadnginx-c40de746829971f2edbf9faeae64d4516cb5466e.tar.gz
nginx-c40de746829971f2edbf9faeae64d4516cb5466e.tar.bz2
Introduced the NGX_COMPAT macro.
When enabled, some structures are padded to be size compatible with their NGINX Plus versions.
Diffstat (limited to 'src/http/ngx_http_upstream.h')
-rw-r--r--src/http/ngx_http_upstream.h9
1 files changed, 9 insertions, 0 deletions
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
};