[PATCH] compile --with-tls=no
Jeff Sparkes <[email protected]> Tue, 24 Nov 2015 08:06:09 -0500
| Newsgroups | gmane.emacs.xemacs.patches |
|---|---|
| Message-ID | <[email protected]> |
I've been having compile problems (on cygwin32) with the various flavours of TLS. Even compiling without TLS was looking for undefined functions. I solved that by ifdefing most of tls.c out when --with-tls=no. Now at least I get a running xemacs on cygwin32. src/ChangeLog addition: 2015-11-24 Jeff Sparkes <[email protected]> * tls.c: Wrap most of file with ifdef WITH_TLS to allow compiling without TLS. xemacs source patch: Diff command: hg diff --git Files affected: src/tls.c modules/postgresql/postgresql.c diff --git a/src/tls.c b/src/tls.c --- a/src/tls.c +++ b/src/tls.c @@ -28,9 +28,11 @@ #include <netinet/in.h> #include <netinet/tcp.h> +Lisp_Object Qtls_error; + +#ifdef WITH_TLS static Lisp_Object prompt; static Lisp_Object Qread_passwd; -Lisp_Object Qtls_error; #ifdef HAVE_NSS #include <prinit.h> @@ -1157,6 +1159,7 @@ return tls_open (fd, host); } #endif /* WITH_TLS */ +#endif /* WITH_TLS */ #ifndef WITH_TLS void