|
|
Home » Community » U++ community news and announcements » Upp 704-dev1 released
|
|
|
|
|
|
|
small freebsd fix [message #9343 is a reply to message #9255] |
Sun, 29 April 2007 17:26 |
atmks
Messages: 33 Registered: July 2006
|
Member |
|
|
hi
small freebsd fix:
--- uppsrc/Core/heap.cpp (revision 54)
+++ uppsrc/Core/heap.cpp (working copy)
@@ -41,7 +41,7 @@
#ifdef PLATFORM_WIN32
return VirtualAlloc(NULL, size, MEM_RESERVE|MEM_COMMIT, PAGE_READWRITE);
#else
-#ifdef PLATFORM_OSX11
+#if defined(PLATFORM_OSX11) || defined(PLATFORM_FREEBSD)
return mmap(0, size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0);
#else
return mmap(0, size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
|
|
|
|
|
|
|
Goto Forum:
Current Time: Sun Nov 10 20:18:22 CET 2024
Total time taken to generate the page: 0.00596 seconds
|
|
|