libevtchn: fix build on non-Linux hosts
PATCH 1/1 libevtchn: fix build on non-Linux hosts
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.
---
Cc: Ian Jackson <[email protected]>
Cc: Wei Liu <[email protected]>
Cc: Julien Grall <[email protected]>
---
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(+)
tools/libs/evtchn/freebsd.c +1 -0
@@ -19,6 +19,7 @@* Split off from xc_freebsd_osdep.c */ +#include <errno.h> #include <fcntl.h> #include <unistd.h>
tools/libs/evtchn/netbsd.c +1 -0
@@ -19,6 +19,7 @@* Split out from xc_netbsd.c */ +#include <errno.h> #include <fcntl.h> #include <unistd.h>
tools/libs/evtchn/solaris.c +1 -0
@@ -19,6 +19,7 @@* Split out from xc_solaris.c */ +#include <errno.h> #include <fcntl.h> #include <unistd.h>
Signature · 7 lines
2.13.6 (Apple Git-96) _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 5 lines · Roger Pau Monne
Non-Linux hosts (where
osdep_evtchn_restrictis not yet supported) made use of errno without includingerrno.h, fix this by including the header.Signed-off-by Roger Pau Monné <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Hi,
Quoted 8 lines · Wei Liu
Quoted 5 lines · Roger Pau Monne
Non-Linux hosts (where
osdep_evtchn_restrictis not yet supported) made use of errno without includingerrno.h, fix this by including the header.Signed-off-by Roger Pau Monné <[email protected]>Acked-by Wei Liu <[email protected]>
Cheers,
Signature · 6 lines
Julien Grall _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel