Changeset 28496 in vbox
- Timestamp:
- Apr 19, 2010 8:48:42 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/alloc-posix.cpp
r28317 r28496 40 40 41 41 #include <stdlib.h> 42 #include <malloc.h> 42 #ifndef RT_OS_FREEBSD /* Deprecated on FreeBSD */ 43 # include <malloc.h> 44 #endif 43 45 #include <errno.h> 44 46 #include <sys/mman.h> … … 180 182 181 183 #else 182 # if 0/** @todo huh? we're using posix_memalign in the next function... */184 # if defined(RT_OS_FREEBSD) /** @todo huh? we're using posix_memalign in the next function... */ 183 185 void *pv; 184 186 int rc = posix_memalign(&pv, PAGE_SIZE, RT_ALIGN_Z(cb, PAGE_SIZE)); … … 186 188 return pv; 187 189 return NULL; 188 # else 190 # else /* !RT_OS_FREEBSD */ 189 191 return memalign(PAGE_SIZE, cb); 190 192 # endif
Note:
See TracChangeset
for help on using the changeset viewer.