summaryrefslogtreecommitdiff
path: root/src/io.c
diff options
context:
space:
mode:
authorfergus.henderson <fergushenderson@users.noreply.github.com>2012-01-25 19:09:33 +0000
committerfergus.henderson <fergushenderson@users.noreply.github.com>2012-01-25 19:09:33 +0000
commita2934d278909c457481dd8645bb6ea2d0b02a8c4 (patch)
tree01bd1ed465433da4cd665582795700997cc861d6 /src/io.c
parent4c9ae097a6f8d790f5f143c1ff6e1a545ac41975 (diff)
downloaddistcc-git-a2934d278909c457481dd8645bb6ea2d0b02a8c4.tar.gz
Fix a build failure on an obscure platform --
see http://code.google.com/p/distcc/issues/detail?id=93. Reviewed by Craig Silverstein.
Diffstat (limited to 'src/io.c')
-rw-r--r--src/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io.c b/src/io.c
index 5206035..63ff587 100644
--- a/src/io.c
+++ b/src/io.c
@@ -261,7 +261,7 @@ int dcc_writex(int fd, const void *buf, size_t len)
**/
int tcp_cork_sock(int POSSIBLY_UNUSED(fd), int POSSIBLY_UNUSED(corked))
{
-#ifdef TCP_CORK
+#if defined(TCP_CORK) && defined(SOL_TCP)
if (!dcc_getenv_bool("DISTCC_TCP_CORK", 1))
return 0;