summaryrefslogtreecommitdiff
path: root/sysutils/xentools20/patches/patch-as
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/xentools20/patches/patch-as')
-rw-r--r--sysutils/xentools20/patches/patch-as22
1 files changed, 22 insertions, 0 deletions
diff --git a/sysutils/xentools20/patches/patch-as b/sysutils/xentools20/patches/patch-as
new file mode 100644
index 00000000000..893a2704142
--- /dev/null
+++ b/sysutils/xentools20/patches/patch-as
@@ -0,0 +1,22 @@
+$NetBSD: patch-as,v 1.1.2.2 2005/05/31 11:13:04 salo Exp $
+
+--- libxc/xc_private.c.orig 2005-01-12 13:22:19.000000000 +0100
++++ libxc/xc_private.c 2005-05-23 23:37:15.000000000 +0200
+@@ -11,7 +11,7 @@
+ {
+ privcmd_mmapbatch_t ioctlx;
+ void *addr;
+- addr = mmap(NULL, num*PAGE_SIZE, prot, MAP_SHARED, xc_handle, 0);
++ addr = mmap(NULL, num*PAGE_SIZE, prot, MAP_ANON | MAP_SHARED, -1, 0);
+ if ( addr != NULL )
+ {
+ ioctlx.num=num;
+@@ -38,7 +38,7 @@
+ privcmd_mmap_t ioctlx;
+ privcmd_mmap_entry_t entry;
+ void *addr;
+- addr = mmap(NULL, size, prot, MAP_SHARED, xc_handle, 0);
++ addr = mmap(NULL, size, prot, MAP_ANON | MAP_SHARED, -1, 0);
+ if ( addr != NULL )
+ {
+ ioctlx.num=1;