]> git.proxmox.com Git - mirror_qemu.git/blobdiff - block/sheepdog.c
sheepdog: fix compile error on systems without TCP_CORK
[mirror_qemu.git] / 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)
 {