Skip to contentSkip to conversation

libevtchn: fix build on non-Linux hosts

PATCH In review Roger Pau Monne 3 participants 3 messages Nov 8, 2017 – Nov 9, 2017

lore
Share & tools
lore
#0 lore raw

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
index ba82f06311..6564ed4c44 100644
@@ -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
index 5ce3a35f80..8b8545d2f9 100644
@@ -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
index f718989450..dd41f62a24 100644
@@ -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
#2 lore raw

Hi,

Quoted 8 lines · Wei Liu
Quoted 5 lines · Roger Pau Monne

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.

Cheers,

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel