www/links1: Fix building without RAND_egd
- Move from USE_OPENSSL to USES=ssl PR: 210727 Submitted by: Tobias Kortkamp <t@tobik.me>
This commit is contained in:
parent
da9f175a15
commit
291c4b0716
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=417917
2 changed files with 15 additions and 1 deletions
|
@ -14,7 +14,7 @@ COMMENT= Lynx-like text WWW browser
|
|||
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
USE_OPENSSL= yes
|
||||
USES= ssl
|
||||
CONFLICTS= links-2*
|
||||
|
||||
CONFIGURE_ARGS+= --with-ssl=${OPENSSLBASE}
|
||||
|
|
14
www/links1/files/patch-https.c
Normal file
14
www/links1/files/patch-https.c
Normal file
|
@ -0,0 +1,14 @@
|
|||
--- https.c.orig 2006-09-11 02:09:24 UTC
|
||||
+++ https.c
|
||||
@@ -33,7 +33,10 @@ SSL *getSSL(void)
|
||||
char f_randfile[PATH_MAX];
|
||||
|
||||
const char *f = RAND_file_name(f_randfile, sizeof(f_randfile));
|
||||
- if (f && RAND_egd(f)<0) {
|
||||
+#ifndef OPENSSL_NO_EGD
|
||||
+ if (f && RAND_egd(f)<0)
|
||||
+#endif
|
||||
+ {
|
||||
/* Not an EGD, so read and write to it */
|
||||
if (RAND_load_file(f_randfile, -1))
|
||||
RAND_write_file(f_randfile);
|
Loading…
Reference in a new issue