diff options
author | nectar <nectar@FreeBSD.org> | 2003-02-21 22:44:51 +0800 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2003-02-21 22:44:51 +0800 |
commit | 56bd8c9201f0c1679128f932541b9416d564edb8 (patch) | |
tree | 8d435270119df5cd63d5416e0aebaccc66e5b816 | |
parent | c949b77477ddc0072ebd26718871d40741918d6f (diff) | |
download | freebsd-ports-gnome-56bd8c9201f0c1679128f932541b9416d564edb8.tar.gz freebsd-ports-gnome-56bd8c9201f0c1679128f932541b9416d564edb8.tar.zst freebsd-ports-gnome-56bd8c9201f0c1679128f932541b9416d564edb8.zip |
Ugh, this code defines `extern' and then includes non-application
headers. Hack around the hack.
The fact that this port was broken with OpenSSL 0.9.7 was
Reported by: kris
-rw-r--r-- | net/SSLtelnet/files/patch-ad | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/net/SSLtelnet/files/patch-ad b/net/SSLtelnet/files/patch-ad index 09ee0ce1b39d..72aea01f9043 100644 --- a/net/SSLtelnet/files/patch-ad +++ b/net/SSLtelnet/files/patch-ad @@ -1,6 +1,31 @@ ---- lib/libtelnet/sslapp.h.orig Fri Oct 16 21:14:59 1998 -+++ lib/libtelnet/sslapp.h Fri Oct 16 21:15:07 1998 -@@ -53,6 +53,7 @@ +--- lib/libtelnet/sslapp.h.orig Sat Aug 2 00:56:21 1997 ++++ lib/libtelnet/sslapp.h Fri Feb 21 08:39:17 2003 +@@ -12,6 +12,12 @@ + * + */ + ++/* Hack upon hack */ ++#ifdef extern ++#define SSLAPP_EXTERN ++#undef extern ++#endif ++ + #ifdef USE_SSL + + #include <stdio.h> +@@ -41,6 +47,11 @@ + #include "x509.h" + #include "ssl.h" + ++#ifdef SSLAPP_EXTERN ++#define extern ++#undef SSLAPP_EXTERN ++#endif ++ + extern BIO *bio_err; + extern SSL *ssl_con; + extern SSL_CTX *ssl_ctx; +@@ -53,6 +64,7 @@ extern int ssl_disabled_flag; extern int ssl_cert_required; extern int ssl_certsok_flag; |