libs/evtchn: fix build on NetBSD
authorFrom: Manuel Bouyer <bouyer@netbsd.org>
Mon, 18 Jan 2021 18:38:41 +0000 (18:38 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 18 Jan 2021 18:58:20 +0000 (18:58 +0000)
commit3a0b215c6f69c3a73d3ea9591823cb28c4a84dea
tree0468ecd002254d11c54f3b5d92426025a8de5bfc
parentcf2a56606033c244321f5d1b6b97d055b2506897
libs/evtchn: fix build on NetBSD

Use xenio3.h for ioctl definitions

read_exact/write_exact seems to not be available here, which cause a gcc
error.  Use plain read/write, the xenevtchn interface won't do partial
read/write on NetBSD anyway so it should be safe.  This is in line with the
rest of the OS specific helpers.

Fixes: b7f76a699dc ('tools: Refactor /dev/xen/evtchn wrappers into libxenevtchn')
Signed-off-by: Manuel Bouyer <bouyer@netbsd.org>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
tools/libs/evtchn/netbsd.c