Allowed building for kfreebsd (Robert Millan)

Extended several #ifdef's to account for "FreeBSD kernel"
This commit is contained in:
Jean-Pierre André 2012-01-23 16:55:04 +01:00
parent d06ee35332
commit 9b5bd2cbbc
2 changed files with 2 additions and 2 deletions

View File

@ -220,7 +220,7 @@ linux*)
[with_fuse="internal"]
)
;;
darwin*|netbsd*|solaris*)
darwin*|netbsd*|solaris*|kfreebsd*-gnu)
with_fuse="external"
;;
freebsd*)

View File

@ -2649,7 +2649,7 @@ struct fuse *fuse_new(struct fuse_chan *ch, struct fuse_args *args,
if (!f->conf.ac_attr_timeout_set)
f->conf.ac_attr_timeout = f->conf.attr_timeout;
#ifdef __FreeBSD__
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
/*
* In FreeBSD, we always use these settings as inode numbers are needed to
* make getcwd(3) work.