[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] sheepdog: fix compile error on systems without TCP_
From: |
MORITA Kazutaka |
Subject: |
[Qemu-devel] [PATCH] sheepdog: fix compile error on systems without TCP_CORK |
Date: |
Wed, 7 Jul 2010 15:25:30 +0900 |
WIN32 is not only the system which doesn't have TCP_CORK (e.g. OS X).
Signed-off-by: MORITA Kazutaka <address@hidden>
---
Betts, I think this patch fix the compile error. Can you try this
one?
block/sheepdog.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/block/sheepdog.c b/block/sheepdog.c
index 69a2494..81aa564 100644
--- a/block/sheepdog.c
+++ b/block/sheepdog.c
@@ -889,7 +889,7 @@ static int aio_flush_request(void *opaque)
return !QLIST_EMPTY(&s->outstanding_aio_head);
}
-#ifdef _WIN32
+#if !defined(SOL_TCP) || !defined(TCP_CORK)
static int set_cork(int fd, int v)
{
--
1.5.6.5
- [Qemu-devel] [PATCH] sheepdog: fix compile error on systems without TCP_CORK,
MORITA Kazutaka <=