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

Re: [Xen-devel] libxl: build error



On Wed, 2012-10-24 at 10:36 +0100, Christoph Egger wrote:
> Hi,
> 
> I have this build error:
> 
> xl_cmdimpl.c:3724:40: error: declaration of 'reboot' shadows a global
> declaration

Did gcc tell you where the other global definition was from? reboot(2) I
suppose?

> Renaming it to '_reboot' fixes this for me.

Can you send a patch?

I don't think _reboot is a legal identifier (reserved for the
implementation or POSIX or some such). do_reboot would be ok. So would
changing main_shutdown_or_reboot to take the function pointer directly I
think.

Ian.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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