diff options
author | pjd <pjd@FreeBSD.org> | 2008-05-26 15:12:47 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2008-05-26 15:12:47 +0000 |
commit | 268a4c430f25bc479b5e1e097f51394aa0f1fffb (patch) | |
tree | 810430b0f4505cb90cb6ec29b3bdeb51bbe78cd9 /usr.bin/fstat | |
parent | 0fcadc05fc9a0d6d85365da88c23c83223ea164c (diff) | |
download | FreeBSD-src-268a4c430f25bc479b5e1e097f51394aa0f1fffb.zip FreeBSD-src-268a4c430f25bc479b5e1e097f51394aa0f1fffb.tar.gz |
Use _WANT_FILE to make struct file visible from userland. This is
similar to _WANT_UCRED and _WANT_PRISON and seems to be much nicer than
defining _KERNEL.
It is also needed for my sys/refcount.h change going in soon.
Diffstat (limited to 'usr.bin/fstat')
-rw-r--r-- | usr.bin/fstat/fstat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/fstat/fstat.c b/usr.bin/fstat/fstat.c index 0907c49d..29ad65f 100644 --- a/usr.bin/fstat/fstat.c +++ b/usr.bin/fstat/fstat.c @@ -60,10 +60,11 @@ __FBSDID("$FreeBSD$"); #include <sys/sysctl.h> #include <sys/filedesc.h> #include <sys/queue.h> +#define _WANT_FILE +#include <sys/file.h> #define _KERNEL #include <sys/pipe.h> #include <sys/conf.h> -#include <sys/file.h> #include <sys/mount.h> #include <ufs/ufs/quota.h> #include <ufs/ufs/inode.h> |