summaryrefslogtreecommitdiff
path: root/tests/unit/unit1650.c
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2019-12-09 11:42:26 +0100
committerMarcel Raad <Marcel.Raad@teamviewer.com>2019-12-13 20:55:50 +0100
commit9f239811fdc9881d64fee5f20cdfe3b66e8c2e14 (patch)
treee7e79fcfbc2fd093eaff5e417e86fc1b54a0a764 /tests/unit/unit1650.c
parentec3758b95f98954b43af6367e7f27baee0d9f307 (diff)
downloadgnurl-9f239811fdc9881d64fee5f20cdfe3b66e8c2e14.tar.gz
gnurl-9f239811fdc9881d64fee5f20cdfe3b66e8c2e14.tar.bz2
gnurl-9f239811fdc9881d64fee5f20cdfe3b66e8c2e14.zip
tests: fix build with `CURL_DISABLE_DOH`
Closes https://github.com/curl/curl/pull/4692
Diffstat (limited to 'tests/unit/unit1650.c')
-rw-r--r--tests/unit/unit1650.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/unit1650.c b/tests/unit/unit1650.c
index cd6f519f7..35ac12c81 100644
--- a/tests/unit/unit1650.c
+++ b/tests/unit/unit1650.c
@@ -33,7 +33,7 @@ static void unit_stop(void)
}
-#ifdef USE_NGHTTP2
+#ifndef CURL_DISABLE_DOH
#define DNS_PREAMBLE "\x00\x00\x01\x00\x00\x01\x00\x00\x00\x00\x00\x00"
#define LABEL_TEST "\x04\x74\x65\x73\x74"
#define LABEL_HOST "\x04\x68\x6f\x73\x74"
@@ -283,7 +283,7 @@ UNITTEST_START
}
UNITTEST_STOP
-#else /* USE_NGHTTP2 */
+#else /* CURL_DISABLE_DOH */
UNITTEST_START
{
return 1; /* nothing to do, just fail */