VirtualBox

Changeset 28496 in vbox


Ignore:
Timestamp:
Apr 19, 2010 8:48:42 PM (15 years ago)
Author:
vboxsync
Message:

Runtime/FreeBSD: Build fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/alloc-posix.cpp

    r28317 r28496  
    4040
    4141#include <stdlib.h>
    42 #include <malloc.h>
     42#ifndef RT_OS_FREEBSD /* Deprecated on FreeBSD */
     43# include <malloc.h>
     44#endif
    4345#include <errno.h>
    4446#include <sys/mman.h>
     
    180182
    181183#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... */
    183185    void *pv;
    184186    int rc = posix_memalign(&pv, PAGE_SIZE, RT_ALIGN_Z(cb, PAGE_SIZE));
     
    186188        return pv;
    187189    return NULL;
    188 # else
     190# else /* !RT_OS_FREEBSD */
    189191    return memalign(PAGE_SIZE, cb);
    190192# endif
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette