pkgsrc/sysutils/xentools3/patches/patch-au
bouyer 7d9ce5b9ea Use /usr/include/xen/xenio*.h if present, falling back to the ones
from files/ (which have the old IOCTL_PRIVCMD_HYPERCALL to be compatible
with NetBSD 4.0).
Properly handle the new IOCTL_PRIVCMD_HYPERCALL ioctl if present.
2008-02-17 16:29:03 +00:00

16 lines
469 B
Text

$NetBSD: patch-au,v 1.2 2008/02/17 16:29:03 bouyer Exp $
--- libxc/xc_private.h.orig 2006-10-16 22:15:35.000000000 +0200
+++ libxc/xc_private.h 2006-10-16 22:16:09.000000000 +0200
@@ -15,7 +15,11 @@
#include "xenctrl.h"
+#ifdef __NetBSD__
+#include <xen/xenio.h>
+#else
#include <xen/sys/privcmd.h>
+#endif
/* valgrind cannot see when a hypercall has filled in some values. For this
reason, we must zero the privcmd_hypercall_t or domctl/sysctl instance