summaryrefslogtreecommitdiffstats
path: root/usr.bin/fstat
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2008-05-26 15:12:47 +0000
committerpjd <pjd@FreeBSD.org>2008-05-26 15:12:47 +0000
commit268a4c430f25bc479b5e1e097f51394aa0f1fffb (patch)
tree810430b0f4505cb90cb6ec29b3bdeb51bbe78cd9 /usr.bin/fstat
parent0fcadc05fc9a0d6d85365da88c23c83223ea164c (diff)
downloadFreeBSD-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.c3
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>
OpenPOWER on IntegriCloud