Skip to content

Commit 77f6d2e

Browse files
Josh Chendenji
Josh Chen
authored andcommitted
Fix config fail when there is Werror in CC flag
1 parent 060ccd7 commit 77f6d2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
ngx_feature="ngx_http_upstream_check_module"
22
ngx_feature_name=
33
ngx_feature_run=no
4-
ngx_feature_incs=
4+
ngx_feature_incs="#include <stdio.h>"
55
ngx_feature_path="$ngx_addon_dir"
66
ngx_feature_deps="$ngx_addon_dir/ngx_http_upstream_check_module.h"
77
ngx_check_src="$ngx_addon_dir/ngx_http_upstream_check_module.c"
8-
ngx_feature_test="int a;"
8+
ngx_feature_test='int a=0; printf("%d", a);'
99
. auto/feature
1010

1111
if [ $ngx_found = yes ]; then

0 commit comments

Comments
 (0)