1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

- Unbreak GnuTLS support for 7.x and 8.x

This commit is contained in:
Ryan Steinmetz 2012-06-24 11:34:51 +00:00
parent 0965c62ee4
commit c3e6deebb6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=299869
2 changed files with 11 additions and 3 deletions

View File

@ -42,9 +42,6 @@ GNUTLS_DESC= Use GnuTLS instead of OpenSSL(EXPERIMENTAL)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGNUTLS}
.if ${OSVERSION} < 900007
BROKEN= GnuTLS support currently requires FreeBSD 9.x or above
.endif
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls
CONFIGURE_ARGS+=--with-gnutls
.endif

View File

@ -0,0 +1,11 @@
--- ./gnutls.c.orig 2012-06-24 07:29:27.000000000 -0400
+++ ./gnutls.c 2012-06-24 07:29:43.000000000 -0400
@@ -239,7 +239,7 @@
/* For systems that don't support O_CLOEXEC, just don't bother.
It's not open for long anyway. */
#ifndef O_CLOEXEC
-#define O_CLOEXEC
+#define O_CLOEXEC 0
#endif
static int load_datum(struct openconnect_info *vpninfo,