From: Ian Jackson Subject: Re: libxl: build error [and 1 more messages] Date: Thu, 25 Oct 2012 12:53:30 +0100 Message-ID: <20617.10298.494649.507500@mariner.uk.xensource.com> References: <5087B6A4.6030203@amd.com> <1351072711.2237.139.camel@zakaz.uk.xensource.com> <5087C813.8090609@amd.com> <5087EA1F02000078000A3EAE@nat28.tlf.novell.com> <1351078090.18035.4.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5087C813.8090609@amd.com>, <1351078090.18035.4.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell , Christoph Egger Cc: Jan Beulich , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Christoph Egger writes ("Re: [Xen-devel] libxl: build error"): > patch attached. Thanks. I have applied this. NB in future it would be helpful for you to supply a suitable commit message. In this case I wrote one - see below. On Wed, 2012-10-24 at 12:16 +0100, Jan Beulich wrote: > Afaict that's a mistake of whatever provides this header on your > system - there's no unconditionally visible "reboot" in the specs > I have available. This is true, but I think it's a very forgiveable error and we might well end up including various headers which import os-specific names. So Christoph's patch is the right thing to do. Ian. # HG changeset patch # User Christoph Egger # Date 1351165885 -3600 # Node ID 580aa3946f87eb56690671bf1aa0022228f59c8c # Parent 22e08c9ac770db07c3c3e7c844aa7153050939f3 xl: avoid shadowing reboot(2) On NetBSD mistakenly exposes reboot(2). Work around this. Signed-off-by: Christoph Egger Signed-off-by: Ian Jackson Acked-by: Ian Jackson Committed-by: Ian Jackson diff -r 22e08c9ac770 -r 580aa3946f87 tools/libxl/xl_cmdimpl.c --- a/tools/libxl/xl_cmdimpl.c Wed Oct 24 17:51:48 2012 +0200 +++ b/tools/libxl/xl_cmdimpl.c Thu Oct 25 12:51:25 2012 +0100 @@ -3721,11 +3721,11 @@ int main_destroy(int argc, char **argv) return 0; } -static int main_shutdown_or_reboot(int reboot, int argc, char **argv) +static int main_shutdown_or_reboot(int do_reboot, int argc, char **argv) { void (*fn)(uint32_t domid, libxl_evgen_domain_death **, libxl_ev_user, int) = - reboot ? &reboot_domain : &shutdown_domain; + do_reboot ? &reboot_domain : &shutdown_domain; int opt, i, nb_domain; int wait_for_it = 0, all =0; int fallback_trigger = 0;