diff options
author | Andris Zeila <andris.zeila@zabbix.com> | 2021-01-21 12:19:37 +0300 |
---|---|---|
committer | Andris Zeila <andris.zeila@zabbix.com> | 2021-01-21 12:19:37 +0300 |
commit | 8e1e3dc27ec35e64df4dae8f6d26421529e8e788 (patch) | |
tree | 3582e7bc911611c16816af222f393da405d2fba3 /src/libs/zbxembed | |
parent | d2a38c414ebd3ce5447088a6bbd472a9af9b1c8d (diff) |
.......PS. [ZBXNEXT-6441] fixed compilation without libcurl
Diffstat (limited to 'src/libs/zbxembed')
-rw-r--r-- | src/libs/zbxembed/httprequest.c | 2 |
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; } |