aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-15 16:48:11 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-15 16:48:11 +0000
commit08af02e25b3925f07ea236536955d40977661918 (patch)
tree79cf0fc80873d5128b6e6d828cc17f120f9be2e1
parentca4cca4da1c60d89f38b50f16f47bb2e6dd1d52d (diff)
Make sure to define fd_open when not on Linux
My previous commit broke the build. This was spotted by C.W. Betts. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5231 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--block-raw-posix.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/block-raw-posix.c b/block-raw-posix.c
index e314f4ae4c..833907186a 100644
--- a/block-raw-posix.c
+++ b/block-raw-posix.c
@@ -1149,6 +1149,11 @@ static int raw_ioctl(BlockDriverState *bs, unsigned long int req, void *buf)
}
#else
+static int fd_open(BlockDriverState *bs)
+{
+ return 0;
+}
+
static int raw_is_inserted(BlockDriverState *bs)
{
return 1;