summaryrefslogtreecommitdiffstats
path: root/main/xen/blktap-write.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-04-18 18:14:46 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2011-04-18 18:15:24 +0200
commit81c1e08f413e033a5fe9f3055bdb5e6eb0e7a7e2 (patch)
treec0aa14030f433aaad02395a838236eefd4c0d503 /main/xen/blktap-write.patch
parentec5ae944f50a0f6f357d2185bbaec206d6632e57 (diff)
downloadaports-81c1e08f413e033a5fe9f3055bdb5e6eb0e7a7e2.tar.bz2
aports-81c1e08f413e033a5fe9f3055bdb5e6eb0e7a7e2.tar.xz
main/xen: build fix
more hacks for blktap
Diffstat (limited to 'main/xen/blktap-write.patch')
-rw-r--r--main/xen/blktap-write.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/main/xen/blktap-write.patch b/main/xen/blktap-write.patch
new file mode 100644
index 000000000..4b589daec
--- /dev/null
+++ b/main/xen/blktap-write.patch
@@ -0,0 +1,24 @@
+--- ./tools/blktap2/include/blktaplib.h.orig
++++ ./tools/blktap2/include/blktaplib.h
+@@ -198,7 +198,9 @@
+ } msg_lock_t;
+
+ #define READ 0
++#ifndef WRITE
+ #define WRITE 1
++#endif
+
+ /*Control Messages between manager and tapdev*/
+ #define CTLMSG_PARAMS 1
+--- ./tools/blktap/lib/blktaplib.h.orig
++++ ./tools/blktap/lib/blktaplib.h
+@@ -196,7 +196,9 @@
+ } msg_pid_t;
+
+ #define READ 0
++#ifndef WRITE
+ #define WRITE 1
++#endif
+
+ /*Control Messages between manager and tapdev*/
+ #define CTLMSG_PARAMS 1