fix FreeBSD before 7 building, broken in r2616

This commit is contained in:
Igor Sysoev 2009-03-30 12:33:33 +00:00
parent 0370ff015e
commit 723f71ddfe
4 changed files with 5 additions and 2 deletions

View File

@ -6,6 +6,7 @@ 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/param.h"; . auto/include
ngx_include="sys/mount.h"; . auto/include
ngx_include="sys/statvfs.h"; . auto/include
ngx_include="crypt.h"; . auto/include

View File

@ -16,6 +16,7 @@ ngx_found=no
cat << END > $NGX_AUTOTEST.c
$NGX_INCLUDE_SYS_PARAM_H
#include <$ngx_include>
int main() {

View File

@ -210,7 +210,8 @@ ngx_feature_test="directio(0, DIRECTIO_ON);"
ngx_feature="statfs()"
ngx_feature_name="NGX_HAVE_STATFS"
ngx_feature_run=no
ngx_feature_incs="$NGX_INCLUDE_SYS_MOUNT_H
ngx_feature_incs="$NGX_INCLUDE_SYS_PARAM_H
$NGX_INCLUDE_SYS_MOUNT_H
$NGX_INCLUDE_SYS_VFS_H"
ngx_feature_path=
ngx_feature_libs=

View File

@ -22,6 +22,7 @@
#include <grp.h>
#include <dirent.h>
#include <glob.h>
#include <sys/param.h> /* ALIGN() */
#include <sys/mount.h> /* statfs() */
#include <sys/filio.h> /* FIONBIO */
@ -44,7 +45,6 @@
#include <libutil.h> /* setproctitle() before 4.1 */
#include <osreldate.h>
#include <sys/sysctl.h>
#include <sys/param.h> /* ALIGN() */
#if __FreeBSD_version < 400017