* Fixed a bug where sysdep.c fails to build if OpenSSL is not present
authorArt Cancro <ajc@citadel.org>
Sat, 11 Apr 2009 21:31:35 +0000 (21:31 +0000)
committerArt Cancro <ajc@citadel.org>
Sat, 11 Apr 2009 21:31:35 +0000 (21:31 +0000)
citadel/sysdep.c

index 1c681a87049cee1891105f942b12530c1f34eaeb..bf39a3177224725e3fdb4ca1c39f1cdf073d58cf 100644 (file)
@@ -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
 }