[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH for-4.15] tools/tests: fix resource test build on FreeBSD


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • Date: Fri, 5 Feb 2021 13:19:38 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UV5n6nH1iEwsFQQCZRAUmnKqYBOrhumq+1ERLJqmQgY=; b=FNTMfKGAwT1iHlr3ESpyr9Bi7ik/L09kdBx5mZlh6Cn77F3ThmaPqnvWTU1cPlZCPKQOi+kTXm9Tq0lLQCbhYdHKevvhhEXsS1YRchwowVwxLy/8Es2UajmvLXxt71HAVZmizxDkdChTFB6t6mgvLdzuXBfQ3eqdhjC74vkYVIx3qcuLTRIbNEO1Miwkx1FDOY75fgXNt5+Z3ebNFHyvnqp6UavgenKAASh5N0ThEmrdssDZ81WxPLNEvAuLRady92qbfWz8Unc7z9eHfSqpuS5L/HePSHfrnBTYs+lPC3fLon415U8UPNZ0xxD5cTMw+70EFhm3fgLVyYTffgqcBA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TnFOM6v5W7e6bokJLMEBuneGnW1mhOqSs8vTDmawHNFEMK4tWUzqbTJcqZvyFQu3tuPlt0qkFnNhKyzs/CKhmtBSYh4P8Tm4u8UnnqhaH5zqTS8GqFYP37lnrzrk9XZ+ShHht+MPmMTMZwje4ZFPbt0IDglP6tt8xk+y2mtAu/spmmmtjDlC0dh1j0G6iM5LtMP0P91M4suJFlfPjIsVQcQsOM16tlttP08kW77NcEZ8fsKIiuCLBabEKKmC5Aon7arJAa5i3uCgnwkdpwTwDXwLZwpZ3ZNd3IJzYUZNknyhAARM0hEm2RrAaY9RHB9Ft/DJtAbYrvrSQZ/WdfzAMg==
  • Authentication-results: esa2.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: Roger Pau Monne <roger.pau@xxxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Fri, 05 Feb 2021 12:20:09 +0000
  • Ironport-sdr: Wz5BbAfAl7dQ7HaTfG8L+snBoa4T1d3gCxdYDCzPoFOnuw3gy3UNNfNOKuDWDDpxmuIVFq/N/X LhflLMA/eI3eYerk8jWk0Y+EgRimtsLiIGTZxs4JwOPKo/oaYsRlsOwX7WPopJ+8mfoMdtLEYZ 2J5saNOlJJVTb3TZ5l105054uCcTTjR/P56lDN075QdQE/0ySjir82VCvSjEhAowJXFBUxaeLp aENImUmVuBYT/4QvB3p8MGFzJy+GD/tqx0ZoP5WCaGJs6PJvf+KWh1+Sa1crniipCaOWqxE96N OoE=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

error.h is not a standard header, and none of the functions declared
there are actually used by the code. This fixes the build on FreeBSD
that doesn't have error.h

Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
---
Build tested on both Linux and FreeBSD. The risk would be breaking the
build, but it's already broken on FreeBSD so there's not much to lose.
Build breakages on Linux will be spotted fast by either osstest of the
gitlab build.
---
 tools/tests/resource/test-resource.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tools/tests/resource/test-resource.c 
b/tools/tests/resource/test-resource.c
index a409a82f44..1caaa60e62 100644
--- a/tools/tests/resource/test-resource.c
+++ b/tools/tests/resource/test-resource.c
@@ -1,6 +1,5 @@
 #include <err.h>
 #include <errno.h>
-#include <error.h>
 #include <stdio.h>
 #include <string.h>
 #include <sys/mman.h>
-- 
2.29.2




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.