freebsd-ports/net/libgnetwork/files/patch-libgnetwork_gnetwork-tcp-connection.c
Joe Marcus Clarke 690839683e Fix the build in the case that SSL is not enabled (the default until this
port adds support for GnuTLS 1.0).

Reported by:	bento
2004-05-03 05:35:11 +00:00

20 lines
564 B
C

--- libgnetwork/gnetwork-tcp-connection.c.orig Mon May 3 01:29:58 2004
+++ libgnetwork/gnetwork-tcp-connection.c Mon May 3 01:32:55 2004
@@ -450,6 +450,7 @@
static void
open_ssl_connection (GNetworkTcpConnection * connection)
{
+#ifdef _USE_SSL
GIOChannel *channel;
GNetworkSslAuth *auth;
GError *error;
@@ -517,6 +518,9 @@
g_object_notify (G_OBJECT (connection), "tcp-status");
g_object_notify (G_OBJECT (connection), "status");
g_object_thaw_notify (G_OBJECT (connection));
+#else
+ g_warning ("SSL support not enabled.");
+#endif
}