mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-27 10:03:20 +00:00
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
This commit is contained in:
parent
fdc8eabdc2
commit
690839683e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=108246
@ -22,8 +22,8 @@ USE_GNOME= gnomeprefix gnomehack intlhack gconf2
|
|||||||
INSTALLS_SHLIB= yes
|
INSTALLS_SHLIB= yes
|
||||||
USE_LIBTOOL_VER=13
|
USE_LIBTOOL_VER=13
|
||||||
USE_GMAKE= yes
|
USE_GMAKE= yes
|
||||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include"
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||||
LDFLAGS+= -L${LOCALBASE}/lib
|
LDFLAGS="-L${LOCALBASE}/lib"
|
||||||
|
|
||||||
#.if !defined(WITHOUT_SSL)
|
#.if !defined(WITHOUT_SSL)
|
||||||
#LIB_DEPENDS+= gnutls.13:${PORTSDIR}/security/gnutls
|
#LIB_DEPENDS+= gnutls.13:${PORTSDIR}/security/gnutls
|
||||||
|
@ -0,0 +1,20 @@
|
|||||||
|
--- 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
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user