From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42014) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnaxQ-00008S-8L for qemu-devel@nongnu.org; Fri, 23 Sep 2016 20:36:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bnaxN-0000qP-4G for qemu-devel@nongnu.org; Fri, 23 Sep 2016 20:36:44 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:8177) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnaxM-0000ir-FJ for qemu-devel@nongnu.org; Fri, 23 Sep 2016 20:36:41 -0400 From: Gonglei Date: Sat, 24 Sep 2016 08:36:19 +0800 Message-ID: <1474677379-344832-1-git-send-email-arei.gonglei@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH v3] qtest: fix make check complaint in crypto module List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: berrange@redhat.com, wu.wubin@huawei.com, Gonglei CC tests/test-crypto-tlscredsx509.o CC tests/crypto-tls-x509-helpers.o CC tests/pkix_asn1_tab.o tests/pkix_asn1_tab.c:7:22: warning: libtasn1.h: No such file or directory tests/pkix_asn1_tab.c:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘pkix_asn1_tab’ make: *** [tests/pkix_asn1_tab.o] Error 1 Signed-off-by: Gonglei --- v3: fix an error: "LIBGNUTLS_VERSION_NUMBER" is not defined (Daniel) v2: add condition check for TLS support (Daniel) tests/pkix_asn1_tab.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/pkix_asn1_tab.c b/tests/pkix_asn1_tab.c index 903bc02..f15fc51 100644 --- a/tests/pkix_asn1_tab.c +++ b/tests/pkix_asn1_tab.c @@ -4,7 +4,9 @@ */ #include "qemu/osdep.h" -#include +#include "tests/crypto-tls-x509-helpers.h" + +#ifdef QCRYPTO_HAVE_TLS_TEST_SUPPORT const ASN1_ARRAY_TYPE pkix_asn1_tab[] = { {"PKIX1", 536875024, 0}, @@ -1103,3 +1105,4 @@ const ASN1_ARRAY_TYPE pkix_asn1_tab[] = { {0, 1048586, "2"}, {0, 0, 0} }; +#endif /* QCRYPTO_HAVE_TLS_TEST_SUPPORT */ -- 1.7.12.4