]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix GnuTLS includes
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 3 Aug 2016 21:20:38 +0000 (14:20 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 3 Aug 2016 21:21:21 +0000 (14:21 -0700)
* src/gnutls.c [HAVE_GNUTLS]: Don’t include gnutls/gnutls.h
a second time; although it doesn’t hurt, it’s not needed.
* src/sysdep.c [!HAVE_GNUTLS]: Don’t include gnutls/crypto.h,
as it may not be available.  Problem reported by Glenn Morris in:
http://lists.gnu.org/archive/html/emacs-devel/2016-08/msg00100.html

src/gnutls.c
src/sysdep.c

index d242919270bd95edaaa628b023bc9f44c56f5001..af2ba52870cb71629376144346e0095f8820e9e6 100644 (file)
@@ -26,7 +26,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #include "coding.h"
 
 #ifdef HAVE_GNUTLS
-#include <gnutls/gnutls.h>
 
 #ifdef WINDOWSNT
 #include <windows.h>
index 43ff0a1e4968f77cc1a239d04c861b10ad890709..70cb961e21f69f7d1f29ca5a340ae99c7c7ba7fe 100644 (file)
@@ -95,7 +95,7 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #include "gnutls.h"
 /* MS-Windows loads GnuTLS at run time, if available; we don't want to
    do that during startup just to call gnutls_rnd.  */
-#ifndef WINDOWSNT
+#if defined HAVE_GNUTLS && !defined WINDOWSNT
 # include <gnutls/crypto.h>
 #else
 # define emacs_gnutls_global_init() Qnil