aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_solaris.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/libxc/xc_solaris.c')
-rw-r--r--tools/libxc/xc_solaris.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/libxc/xc_solaris.c b/tools/libxc/xc_solaris.c
index 506319b7ff..edca1871be 100644
--- a/tools/libxc/xc_solaris.c
+++ b/tools/libxc/xc_solaris.c
@@ -207,13 +207,14 @@ static int solaris_evtchn_fd(xc_evtchn *xce, xc_osdep_handle h)
return (int)h;
}
-int xc_evtchn_notify(xc_evtchn *xce, evtchn_port_t port)
+static int solaris_evtchn_notify(xc_evtchn *xce, xc_osdep_handle h, evtchn_port_t port)
{
+ int fd = (int)h;
struct ioctl_evtchn_notify notify;
notify.port = port;
- return ioctl(xce->fd, IOCTL_EVTCHN_NOTIFY, &notify);
+ return ioctl(fd, IOCTL_EVTCHN_NOTIFY, &notify);
}
evtchn_port_or_error_t
@@ -279,6 +280,7 @@ static struct xc_osdep_ops solaris_evtchn_ops = {
.u.evtchn = {
.fd = &solaris_evtchn_fd,
+ .notify = &solaris_evtchn_notify,
},
};