diff options
author | MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp> | 2010-07-07 15:25:30 +0900 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-07-07 20:54:56 +0300 |
commit | 6defcc3784c21a846c520ef15b5dbe62f0a95075 (patch) | |
tree | 4e55d0333ba06f327421e8fbbd4a4dd400f3e771 /block/sheepdog.c | |
parent | 5efb397f877fc3002c8bc764f4656f4761bd965d (diff) |
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 <morita.kazutaka@lab.ntt.co.jp>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'block/sheepdog.c')
-rw-r--r-- | block/sheepdog.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |