# HG changeset patch # User Maxim Dounin # Date 1454948838 -10800 # Node ID b676808a49bc65d22a9032d6d8faedf6de676d71 # Parent 57365655ee44096bf5422a9fa7164a52a518525d Compatibility with nginx 1.9.10. This includes using HTTP_INIT_FILTER module type, and new style configuration to allow dynamic compilation. diff --git a/config b/config --- a/config +++ b/config @@ -3,8 +3,22 @@ ngx_addon_name="ngx_http_bytes_filter_module" +if test -n "$ngx_module_link"; then + +ngx_module_type=HTTP_INIT_FILTER +ngx_module_name=ngx_http_bytes_filter_module +ngx_module_incs= +ngx_module_deps= +ngx_module_srcs=$ngx_addon_dir/ngx_http_bytes_filter_module.c +ngx_module_libs= + +. auto/module + +else + HTTP_RANGE_BODY_FILTER_MODULE="$HTTP_RANGE_BODY_FILTER_MODULE \ ngx_http_bytes_filter_module" - NGX_ADDON_SRCS="$NGX_ADDON_SRCS \ $ngx_addon_dir/ngx_http_bytes_filter_module.c" + +fi