From 363ba46f66cbd84e4163c58383a9612f845d4234 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Sat, 11 Apr 2009 21:31:35 +0000 Subject: [PATCH] * Fixed a bug where sysdep.c fails to build if OpenSSL is not present --- citadel/sysdep.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/citadel/sysdep.c b/citadel/sysdep.c index 1c681a870..bf39a3177 100644 --- a/citadel/sysdep.c +++ b/citadel/sysdep.c @@ -566,17 +566,19 @@ static unsigned on = 1, off = 0; void buffer_output(void) { #ifdef HAVE_TCP_BUFFERING - if (!CC->redirect_ssl) { +#ifdef HAVE_OPENSSL + if (!CC->redirect_ssl) +#endif setsockopt(CC->client_socket, IPPROTO_TCP, TCP_CORK, &on, 4); - } #endif } void unbuffer_output(void) { #ifdef HAVE_TCP_BUFFERING - if (!CC->redirect_ssl) { +#ifdef HAVE_OPENSSL + if (!CC->redirect_ssl) +#endif setsockopt(CC->client_socket, IPPROTO_TCP, TCP_CORK, &off, 4); - } #endif } -- 2.39.2