From 6defcc3784c21a846c520ef15b5dbe62f0a95075 Mon Sep 17 00:00:00 2001 From: MORITA Kazutaka Date: Wed, 7 Jul 2010 15:25:30 +0900 Subject: [PATCH] sheepdog: fix compile error on systems without TCP_CORK WIN32 is not only the system which doesn't have TCP_CORK (e.g. OS X). Signed-off-by: MORITA Kazutaka Signed-off-by: Blue Swirl --- block/sheepdog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/sheepdog.c b/block/sheepdog.c index 69a24940aa..81aa564f26 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) { -- 2.11.4.GIT