blob: 945191d44bf6d2552c4e323e859356464c602075 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
From 394383035edf9ce6100418e0e8c0ceb49f774fbc Mon Sep 17 00:00:00 2001
From: Simon Josefsson <simon@josefsson.org>
Date: Thu, 17 Aug 2023 14:25:22 +0200
Subject: [PATCH] Handle missing GNUTLS_NO_EXTENSIONS. Closes: #15.
The GNUTLS_NO_EXTENSIONS #define is missing from GnuTLS 3.8.1.
---
guile/src/make-enum-header.scm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/guile/src/make-enum-header.scm b/guile/src/make-enum-header.scm
index b548991..488e396 100644
--- a/guile/src/make-enum-header.scm
+++ b/guile/src/make-enum-header.scm
@@ -41,6 +41,9 @@
(format port "#include <gnutls/x509.h>~%")
(format port "#include <gnutls/openpgp.h>~%")
(format port "#include <gnutls/abstract.h>~%")
+ (format port "#ifndef GNUTLS_NO_EXTENSIONS~%")
+ (format port "#define GNUTLS_NO_EXTENSIONS GNUTLS_NO_DEFAULT_EXTENSIONS~%")
+ (format port "#endif~%~%")
(for-each (lambda (enum)
(output-enum-declarations enum port)
--
GitLab
|