source: build-files/ports-overlay/emulators/virtualbox-ose-additions/files/patch-src-VBox-Runtime-r0drv-freebsd-alloc-r0drv-freebsd.c @ 1e102bd

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3releng/10.1
Last change on this file since 1e102bd was 1e102bd, checked in by Kris Moore <kris@…>, 14 months ago

Add a bunch of modified ports for 10.0, so we can fix the building

  • Property mode set to 100644
File size: 807 bytes
Line 
1--- src/VBox/Runtime/r0drv/freebsd/alloc-r0drv-freebsd.c        2013-09-06 06:30:30.000000000 -0600
2+++ src/VBox/Runtime/r0drv/freebsd/alloc-r0drv-freebsd.c        2013-09-18 12:01:45.000000000 -0600
3@@ -79,8 +79,13 @@
4             return VERR_NO_EXEC_MEMORY;
5 
6         /* Addr contains a start address vm_map_find will start searching for suitable space at. */
7+#if __FreeBSD_version >= 1000055
8+        int rc = vm_map_find(kernel_map, pVmObject, 0, &Addr,
9+                             cbAllocated, 0, VMFS_ANY_SPACE, VM_PROT_ALL, VM_PROT_ALL, 0);
10+#else
11         int rc = vm_map_find(kernel_map, pVmObject, 0, &Addr,
12                              cbAllocated, TRUE, VM_PROT_ALL, VM_PROT_ALL, 0);
13+#endif
14         if (rc == KERN_SUCCESS)
15         {
16             rc = vm_map_wire(kernel_map, Addr, Addr + cbAllocated,
Note: See TracBrowser for help on using the repository browser.