Non-Linux hosts (where osdep_evtchn_restrict is not yet supported) made use of errno without including errno.h, fix this by including the header.
Signed-off-by: Roger Pau Monné <roger....@citrix.com> --- Cc: Ian Jackson <ian.jack...@eu.citrix.com> Cc: Wei Liu <wei.l...@citrix.com> Cc: Julien Grall <julien.gr...@linaro.org> --- Build fix for 4.10: it only affects non-Linux, and without this fix the tools cannot be build. --- tools/libs/evtchn/freebsd.c | 1 + tools/libs/evtchn/netbsd.c | 1 + tools/libs/evtchn/solaris.c | 1 + 3 files changed, 3 insertions(+) diff --git a/tools/libs/evtchn/freebsd.c b/tools/libs/evtchn/freebsd.c index ba82f06311..6564ed4c44 100644 --- a/tools/libs/evtchn/freebsd.c +++ b/tools/libs/evtchn/freebsd.c @@ -19,6 +19,7 @@ * Split off from xc_freebsd_osdep.c */ +#include <errno.h> #include <fcntl.h> #include <unistd.h> diff --git a/tools/libs/evtchn/netbsd.c b/tools/libs/evtchn/netbsd.c index 5ce3a35f80..8b8545d2f9 100644 --- a/tools/libs/evtchn/netbsd.c +++ b/tools/libs/evtchn/netbsd.c @@ -19,6 +19,7 @@ * Split out from xc_netbsd.c */ +#include <errno.h> #include <fcntl.h> #include <unistd.h> diff --git a/tools/libs/evtchn/solaris.c b/tools/libs/evtchn/solaris.c index f718989450..dd41f62a24 100644 --- a/tools/libs/evtchn/solaris.c +++ b/tools/libs/evtchn/solaris.c @@ -19,6 +19,7 @@ * Split out from xc_solaris.c */ +#include <errno.h> #include <fcntl.h> #include <unistd.h> -- 2.13.6 (Apple Git-96) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel