From 348b914ab76b46c4d2b22a84101b05cf24826266 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Wed, 4 Apr 2007 14:44:50 +0000 Subject: [PATCH] Protect #include of zlib.h if we build without zlib. --- src/comp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/comp.c b/src/comp.c index 5143909..52d829c 100644 --- a/src/comp.c +++ b/src/comp.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2004-2006, Sara Golemon +/* Copyright (c) 2004-2007, Sara Golemon * All rights reserved. * * Redistribution and use in source and binary forms, @@ -36,7 +36,9 @@ */ #include "libssh2_priv.h" -#include +#ifdef LIBSSH2_HAVE_ZLIB +# include +#endif /* ******** * none *