]> git.proxmox.com Git - qemu.git/commitdiff
sheepdog: fix compile error on systems without TCP_CORK
authorMORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Wed, 7 Jul 2010 06:25:30 +0000 (15:25 +0900)
committerBlue Swirl <blauwirbel@gmail.com>
Wed, 7 Jul 2010 17:54:56 +0000 (20:54 +0300)
WIN32 is not only the system which doesn't have TCP_CORK (e.g. OS X).

Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
block/sheepdog.c

index 69a24940aa14fd47730f48e3406d5486be9d2bb4..81aa564f263a511cf5e856a4143fe036d47cd8ef 100644 (file)
@@ -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)
 {