summaryrefslogtreecommitdiff
path: root/lib/altsvc.c
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2020-05-23 15:41:25 +0200
committerPeter Wu <peter@lekensteyn.nl>2020-05-25 17:34:00 +0200
commit54d122287c878188c5bbd4a659295f4ba27e137c (patch)
treefc5a9ddc7851e2df5f1d1680ac7b217f451b65ac /lib/altsvc.c
parent82a33efb33d29872526020331775e337c03beae1 (diff)
downloadcurl-54d122287c878188c5bbd4a659295f4ba27e137c.tar.gz
ngtcp2: fix build with current ngtcp2 master implementing draft 28
Based on client.cc changes from ngtcp2. Tested with current git master, ngtcp2 commit c77d5731ce92, nghttp3 commit 65ff479d4380. Fixes #5444 Closes #5443
Diffstat (limited to 'lib/altsvc.c')
-rw-r--r--lib/altsvc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/altsvc.c b/lib/altsvc.c
index c39d86eaf..f6c5c0612 100644
--- a/lib/altsvc.c
+++ b/lib/altsvc.c
@@ -50,8 +50,10 @@
#define MAX_ALTSVC_ALPNLENSTR "10"
#define MAX_ALTSVC_ALPNLEN 10
-#if (defined(USE_QUICHE) || defined(USE_NGTCP2)) && !defined(UNITTESTS)
+#if defined(USE_QUICHE) && !defined(UNITTESTS)
#define H3VERSION "h3-27"
+#elif defined(USE_NGTCP2) && !defined(UNITTESTS)
+#define H3VERSION "h3-28"
#else
#define H3VERSION "h3"
#endif