From: Petr Špaček Date: Fri, 16 Oct 2020 08:15:32 +0000 (+0200) Subject: kluautil: remove hard depedency on lua-cqueues X-Git-Tag: v5.2.0~6^2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4977252600aeb9c0d424f4e677b01bbf043ea79e;p=thirdparty%2Fknot-resolver.git kluautil: remove hard depedency on lua-cqueues For now we still attempt to support systems without lua-cqueues, e.g. Ubuntu 16.04. lua-http depends on lua-cqueues so the test for availability of lua-http at the beginning of kr_https_fetch() should cover lua-cqueues as well. --- diff --git a/daemon/lua/kluautil.lua b/daemon/lua/kluautil.lua index b96a4bad7..a1aebc765 100644 --- a/daemon/lua/kluautil.lua +++ b/daemon/lua/kluautil.lua @@ -1,6 +1,5 @@ -- SPDX-License-Identifier: GPL-3.0-or-later -local cqerrno = require('cqueues.errno') local ffi = require('ffi') local kluautil = {} @@ -53,6 +52,7 @@ function kluautil.kr_https_fetch(url, out_file, ca_file) if not http_ok or not httptls_ok or not openssl_ok then return nil, 'error: lua-http and luaossl libraries are missing (but required)' end + local cqerrno = require('cqueues.errno') assert(string.match(url, '^https://'))