summaryrefslogtreecommitdiff
path: root/sysutils/xentools20/patches/patch-aq
blob: a4f4178a612abb57c2fc233b8dec4a8aca2bb7e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-aq,v 1.1.1.1 2005/03/07 15:59:08 bouyer Exp $

--- x2d2/minixend.c.orig	2005-01-31 14:45:08.000000000 +0100
+++ x2d2/minixend.c	2005-01-31 14:46:00.000000000 +0100
@@ -913,10 +913,15 @@
 	xc_handle = xc_interface_open();
 
 	listen_fd = start_listening();
-
+#ifdef __NetBSD__
+	evtchn_fd = open("/dev/xenevt", O_RDWR);
+	if (evtchn_fd < 0)
+		err(1, "openning /dev/xenevt");
+#else
 	evtchn_fd = open("/dev/xen/evtchn", O_RDWR);
 	if (evtchn_fd < 0)
 		err(1, "openning /dev/xen/evtchn");
+#endif
 
 	dom0 = find_dom0();