summaryrefslogtreecommitdiffhomepage
path: root/auto/unix
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2012-03-15 20:39:38 +0000
committerRuslan Ermilov <ru@nginx.com>2012-03-15 20:39:38 +0000
commit4489fa8893518cc63ddcff221d12572f05ed7b1c (patch)
treeea629a2febbfe3095644871a5915dc0ac2de3c89 /auto/unix
parent5d1d368cf4e027335672d07afe11585e999c1fd7 (diff)
downloadnginx-4489fa8893518cc63ddcff221d12572f05ed7b1c.tar.gz
nginx-4489fa8893518cc63ddcff221d12572f05ed7b1c.tar.bz2
Fixed compilation warnings in configuration C tests.
Based on a patch by Piotr Sikora.
Diffstat (limited to '')
-rwxr-xr-xauto/unix9
1 files changed, 5 insertions, 4 deletions
diff --git a/auto/unix b/auto/unix
index d786bb433..88b2cbee7 100755
--- a/auto/unix
+++ b/auto/unix
@@ -237,7 +237,7 @@ ngx_feature_incs="$NGX_INCLUDE_SYS_PARAM_H
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 = posix_memalign(&p, 4096, 4096)"
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)"