hvmloader: use xen/errno.h rather than the host systems errno.h
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 7 Mar 2016 16:46:03 +0000 (17:46 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 7 Mar 2016 16:46:03 +0000 (17:46 +0100)
commit305e957ffee94fc06c4ba53ef5562f1b8c1c6b02
treeee6f6ff4329ba833819a3c5d3f7820dd65257b2a
parent67790205df26e7c3dfeef8b8e64194ebc279220d
hvmloader: use xen/errno.h rather than the host systems errno.h

hvmloader is unhosted, and shouldn't use the system errno.h.  It already has
to use Xen's errno.h for other hypercalls.  The use of public/io/xs_wire.h
requires the use of un-prefixed errno values.

This fixes the build on stricter toolchains where requesting -fno-builtin does
reduce the include path as much as it can.

Reported-by: Doug Goldstein <cardoe@cardoe.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Doug Goldstein <cardoe@cardoe.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
tools/firmware/hvmloader/util.h
tools/firmware/hvmloader/vnuma.c
tools/firmware/hvmloader/xenbus.c