From 03d0c143bdf74a5d9be5e92415278c252e425d30 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Wed, 20 Apr 2016 10:08:23 +0200 Subject: gnutls_int.h: allow compiling with system (gnutls) headers --- lib/gnutls_int.h | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/lib/gnutls_int.h b/lib/gnutls_int.h index cbd5edf082..8d26125329 100644 --- a/lib/gnutls_int.h +++ b/lib/gnutls_int.h @@ -94,17 +94,12 @@ typedef struct { #include #include -/* - * They are not needed any more. You can simply enable - * the gnutls_log callback to get error descriptions. - -#define BUFFERS_DEBUG -#define WRITE_DEBUG -#define READ_DEBUG -#define HANDSHAKE_DEBUG // Prints some information on handshake -#define COMPRESSION_DEBUG -#define DEBUG -*/ +/* in case we compile with system headers taking priority, we + * make sure that some new attributes are still available. + */ +#ifndef __GNUTLS_CONST__ +# define __GNUTLS_CONST__ +#endif /* The size of a handshake message should not * be larger than this value. -- cgit v1.2.1