diff options
author | bouyer <bouyer@pkgsrc.org> | 2005-05-23 22:02:04 +0000 |
---|---|---|
committer | bouyer <bouyer@pkgsrc.org> | 2005-05-23 22:02:04 +0000 |
commit | a654d97034cc6a2ad61d5caf2b8fcf540816aeac (patch) | |
tree | d2c20fbdb3f1df4d6161e48034fa259946e44fcc /sysutils/xentools20/patches | |
parent | a06f0e07697ef31e85863be2d4df339ef22f34c6 (diff) | |
download | pkgsrc-a654d97034cc6a2ad61d5caf2b8fcf540816aeac.tar.gz |
Don't mmap /kern/xen/privcmd (this doesn't work any more on current), use
MAP_ANON instead. Bump pkgrevision.
Diffstat (limited to 'sysutils/xentools20/patches')
-rw-r--r-- | sysutils/xentools20/patches/patch-as | 22 |
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..038bb67a0b7 --- /dev/null +++ b/sysutils/xentools20/patches/patch-as @@ -0,0 +1,22 @@ +$NetBSD: patch-as,v 1.1 2005/05/23 22:02:04 bouyer 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; |