aboutsummaryrefslogtreecommitdiffstats
path: root/tools/blktap
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2011-01-17 17:14:20 +0000
committerIan Campbell <ian.campbell@citrix.com>2011-01-17 17:14:20 +0000
commita4f86af3e4d955172d35f2b5b4db95288d6138ff (patch)
tree9273cffb809efa321cff6cf9468ee825f2666830 /tools/blktap
parent342e60022d93d0ffb79e365a0240ceb690d2044f (diff)
downloadxen-a4f86af3e4d955172d35f2b5b4db95288d6138ff.tar.gz
xen-a4f86af3e4d955172d35f2b5b4db95288d6138ff.tar.bz2
xen-a4f86af3e4d955172d35f2b5b4db95288d6138ff.zip
tools/blktap, blktap2: include <sys/mount.h> instead of <linux/fs.h>
The former is a userspace sanitised header which contains the definitions we need. In some distros linux/fs.h defines WRITE which conflicts with blktaps own use of that name. Also there is no reason to use <linux/errno.h> over the more normal <errno.h>. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/blktap')
-rw-r--r--tools/blktap/drivers/blk_linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/blktap/drivers/blk_linux.c b/tools/blktap/drivers/blk_linux.c
index f1b14bd6e8..bb52717050 100644
--- a/tools/blktap/drivers/blk_linux.c
+++ b/tools/blktap/drivers/blk_linux.c
@@ -1,6 +1,6 @@
#include <inttypes.h>
#include <sys/ioctl.h>
-#include <linux/fs.h>
+#include <sys/mount.h>
#include "tapdisk.h"
#include "blk.h"