]> xenbits.xensource.com Git - people/iwj/xen.git/commitdiff
libevtchn: fix build on non-Linux hosts
authorRoger Pau Monne <roger.pau@citrix.com>
Wed, 8 Nov 2017 12:52:57 +0000 (12:52 +0000)
committerWei Liu <wei.liu2@citrix.com>
Thu, 9 Nov 2017 17:02:25 +0000 (17:02 +0000)
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.pau@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Release-acked-by: Julien Grall <julien.grall@linaro.org>
tools/libs/evtchn/freebsd.c
tools/libs/evtchn/netbsd.c
tools/libs/evtchn/solaris.c

index ba82f06311f1b65f81ec1cc7dd949af537272ee6..6564ed4c4460b67ce0e03f0e03d7f52e508802d4 100644 (file)
@@ -19,6 +19,7 @@
  * Split off from xc_freebsd_osdep.c
  */
 
+#include <errno.h>
 #include <fcntl.h>
 #include <unistd.h>
 
index 5ce3a35f801cb05c18e57f19011cdf3afcac0570..8b8545d2f956917c6ff11baaf6f4b2cbacb6b6b6 100644 (file)
@@ -19,6 +19,7 @@
  * Split out from xc_netbsd.c
  */
 
+#include <errno.h>
 #include <fcntl.h>
 #include <unistd.h>
 
index f7189894503f0c55dc7fe310c44e0ff06e60d246..dd41f62a242f6050596e7ee6e6e3cf0dfcc6f240 100644 (file)
@@ -19,6 +19,7 @@
  * Split out from xc_solaris.c
  */
 
+#include <errno.h>
 #include <fcntl.h>
 #include <unistd.h>