xen: Add stdbool.h workaround for BSD.
authorTim Deegan <tim@xen.org>
Thu, 15 Aug 2013 12:00:18 +0000 (13:00 +0100)
committerTim Deegan <tim@xen.org>
Thu, 15 Aug 2013 21:00:45 +0000 (22:00 +0100)
commit7b9685ca4ed2fd723600ce66eb20a6d0c115b6cb
treed0101fc90117a9f5f82a1dd4af240a3925900a25
parent06a9c7e1928da40370d03515c68410a58989c274
xen: Add stdbool.h workaround for BSD.

On *BSD, stdbool.h lives in /usr/include, but we don't want to have
that on the search path in case we pick up any headers from the build
host's C libraries.

Copy the equivalent hack already in place for stdarg.h: on all
supported compilers the contents of stdbool.h are trivial, so just
supply the things we need in a xen/stdbool.h header.

Signed-off-by: Tim Deegan <tim@xen.org>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
Tested-by: Patrick Welche <prlw1@cam.ac.uk>
xen/include/xen/libelf.h
xen/include/xen/stdbool.h [new file with mode: 0644]