]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
tools/blktap, blktap2: include <sys/mount.h> instead of <linux/fs.h>
authorKeith Coleman <keith.coleman@n2servers.com>
Wed, 21 Dec 2011 01:18:34 +0000 (20:18 -0500)
committerKeith Coleman <keith.coleman@n2servers.com>
Wed, 21 Dec 2011 01:18:34 +0000 (20:18 -0500)
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>
xen-unstable changeset:   22765:0dbad563a659
xen-unstable date:        Mon Jan 17 17:14:20 2011 +0000

tools/blktap/drivers/blk_linux.c

index f1b14bd6e886ac518d1b5dd2aece1a26543a3e1a..bb5271705053df4726d523b44c924da9501c3c95 100644 (file)
@@ -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"