Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndris Zeila <andris.zeila@zabbix.com>2021-01-21 12:19:37 +0300
committerAndris Zeila <andris.zeila@zabbix.com>2021-01-21 12:19:37 +0300
commit8e1e3dc27ec35e64df4dae8f6d26421529e8e788 (patch)
tree3582e7bc911611c16816af222f393da405d2fba3 /src/libs/zbxembed
parentd2a38c414ebd3ce5447088a6bbd472a9af9b1c8d (diff)
.......PS. [ZBXNEXT-6441] fixed compilation without libcurl
Diffstat (limited to 'src/libs/zbxembed')
-rw-r--r--src/libs/zbxembed/httprequest.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/zbxembed/httprequest.c b/src/libs/zbxembed/httprequest.c
index 81934e11b8a..2ec59c2c8ba 100644
--- a/src/libs/zbxembed/httprequest.c
+++ b/src/libs/zbxembed/httprequest.c
@@ -622,6 +622,7 @@ int zbx_es_init_httprequest(zbx_es_t *es, char **error)
return FAIL;
}
+#ifdef HAVE_LIBCURL
duk_push_number(es->env->ctx, CURLAUTH_NONE);
duk_put_global_string(es->env->ctx, "HTTPAUTH_NONE");
duk_push_number(es->env->ctx, CURLAUTH_BASIC);
@@ -636,6 +637,7 @@ int zbx_es_init_httprequest(zbx_es_t *es, char **error)
duk_put_global_string(es->env->ctx, "HTTPAUTH_NEGOTIATE");
duk_push_number(es->env->ctx, CURLAUTH_NTLM);
duk_put_global_string(es->env->ctx, "HTTPAUTH_NTLM");
+#endif
return SUCCEED;
}