summaryrefslogtreecommitdiffhomepage
path: root/auto
diff options
context:
space:
mode:
Diffstat (limited to 'auto')
-rw-r--r--auto/headers12
-rw-r--r--auto/os/features24
-rw-r--r--auto/os/linux3
3 files changed, 34 insertions, 5 deletions
diff --git a/auto/headers b/auto/headers
index 542b757c1..cdd5d294b 100644
--- a/auto/headers
+++ b/auto/headers
@@ -2,8 +2,10 @@
# Copyright (C) Igor Sysoev
-ngx_include="unistd.h"; . auto/include
-ngx_include="inttypes.h"; . auto/include
-ngx_include="limits.h"; . auto/include
-ngx_include="sys/filio.h"; . auto/include
-ngx_include="crypt.h"; . auto/include
+ngx_include="unistd.h"; . auto/include
+ngx_include="inttypes.h"; . auto/include
+ngx_include="limits.h"; . auto/include
+ngx_include="sys/filio.h"; . auto/include
+ngx_include="sys/mount.h"; . auto/include
+ngx_include="sys/statvfs.h"; . auto/include
+ngx_include="crypt.h"; . auto/include
diff --git a/auto/os/features b/auto/os/features
index ecb210da6..f00663c88 100644
--- a/auto/os/features
+++ b/auto/os/features
@@ -205,3 +205,27 @@ ngx_feature_path=
ngx_feature_libs=
ngx_feature_test="directio(0, DIRECTIO_ON);"
. auto/feature
+
+
+ngx_feature="statfs()"
+ngx_feature_name="NGX_HAVE_STATFS"
+ngx_feature_run=no
+ngx_feature_incs="$NGX_INCLUDE_SYS_MOUNT_H
+ $NGX_INCLUDE_SYS_VFS_H"
+ngx_feature_path=
+ngx_feature_libs=
+ngx_feature_test="struct statfs fs;
+ statfs(NULL, &fs);"
+. auto/feature
+
+
+ngx_feature="statvfs()"
+ngx_feature_name="NGX_HAVE_STATVFS"
+ngx_feature_run=no
+ngx_feature_incs="#include <sys/types.h>
+ #include <sys/statvfs.h>"
+ngx_feature_path=
+ngx_feature_libs=
+ngx_feature_test="struct statvfs fs;
+ statvfs(NULL, &fs);"
+. auto/feature
diff --git a/auto/os/linux b/auto/os/linux
index 698886fa8..43ff3c9e2 100644
--- a/auto/os/linux
+++ b/auto/os/linux
@@ -124,4 +124,7 @@ ngx_feature_test="long mask = 0;
. auto/feature
+ngx_include="sys/vfs.h"; . auto/include
+
+
CC_AUX_FLAGS=$cc_aux_flags