diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-04-20 10:08:23 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-04-20 13:45:35 +0200 |
commit | 4e865ef9baf3fdf95a12f34839f2f8658867a24c (patch) | |
tree | bad60a7b43a972c5a586a5f11d801783f06d0f7a | |
parent | eb905ac4d790efc0294ac0c40c50f647fe9769f1 (diff) | |
download | gnutls-4e865ef9baf3fdf95a12f34839f2f8658867a24c.tar.gz |
gnutls_int.h: allow compiling with system (gnutls) headers
-rw-r--r-- | lib/gnutls_int.h | 17 |
1 files 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 <gnutls/abstract.h> #include <system.h> -/* - * 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. |