Mercurial > hg > nginx
diff auto/unix @ 4543:51744fa997c7
Fixed compilation warnings in configuration C tests.
Based on a patch by Piotr Sikora.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 15 Mar 2012 20:39:38 +0000 |
parents | 0b05acc045eb |
children | ba39af7274ed |
line wrap: on
line diff
--- a/auto/unix +++ b/auto/unix @@ -237,7 +237,7 @@ ngx_feature_incs="$NGX_INCLUDE_SYS_PARAM ngx_feature_path= ngx_feature_libs= ngx_feature_test="struct statfs fs; - statfs(NULL, &fs);" + statfs(\".\", &fs);" . auto/feature @@ -249,7 +249,7 @@ ngx_feature_incs="#include <sys/types.h> ngx_feature_path= ngx_feature_libs= ngx_feature_test="struct statvfs fs; - statvfs(NULL, &fs);" + statvfs(\".\", &fs);" . auto/feature @@ -481,7 +481,7 @@ fi ngx_feature="setproctitle()" ngx_feature_name="NGX_HAVE_SETPROCTITLE" ngx_feature_run=no -ngx_feature_incs= +ngx_feature_incs="#include <stdlib.h>" ngx_feature_path= ngx_feature_libs=$NGX_SETPROCTITLE_LIB ngx_feature_test="setproctitle(\"test\");" @@ -585,7 +585,8 @@ ngx_feature_test="void *p; int n; n = po ngx_feature="memalign()" ngx_feature_name="NGX_HAVE_MEMALIGN" ngx_feature_run=no -ngx_feature_incs="#include <stdlib.h>" +ngx_feature_incs="#include <stdlib.h> + #include <malloc.h>" ngx_feature_path= ngx_feature_libs= ngx_feature_test="void *p; p = memalign(4096, 4096)"