summaryrefslogtreecommitdiff
path: root/pfinet/io-ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'pfinet/io-ops.c')
-rw-r--r--pfinet/io-ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pfinet/io-ops.c b/pfinet/io-ops.c
index 6da558c7..b6831c31 100644
--- a/pfinet/io-ops.c
+++ b/pfinet/io-ops.c
@@ -75,7 +75,7 @@ S_io_read (struct sock_user *user,
allocate as much as necessary. */
if (amount > *datalen)
{
- vm_allocate (mach_task_self (), (vm_address_t *)data, amount, 1);
+ *data = mmap (0, amount, PROT_READ|PROT_WRITE, MAP_ANON, 0, 0);
alloced = 1;
}