VirtualBox

Changeset 60603 in vbox


Ignore:
Timestamp:
Apr 20, 2016 2:32:19 PM (9 years ago)
Author:
vboxsync
Message:

Assorted compile fixes for FreeBSD

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/asm.h

    r60228 r60603  
    39543954 * @remarks No alignment requirements.
    39553955 */
    3956 #if !defined(RT_OS_LINUX) || !defined(__KERNEL__)
     3956#if    (!defined(RT_OS_LINUX) || !defined(__KERNEL__)) \
     3957    && (!defined(RT_OS_FREEBSD) || !defined(_KERNEL))
    39573958DECLASM(void *) ASMMemFirstMismatchingU8(void const *pv, size_t cb, uint8_t u8);
    39583959#else
  • trunk/include/iprt/string.h

    r60028 r60603  
    114114#endif
    115115
    116 #if !defined(RT_OS_LINUX) || !defined(_GNU_SOURCE)
     116#if (!defined(RT_OS_LINUX) || !defined(_GNU_SOURCE)) && !defined(RT_OS_FREEBSD)
    117117RT_C_DECLS_BEGIN
    118118void *memrchr(const char *pv, int ch, size_t cb);
  • trunk/src/VBox/HostDrivers/Support/SUPDrv.cpp

    r60452 r60603  
    468468    /* VBoxUSB */
    469469    (PFNRT)RTPathStripFilename,
     470#if !defined(RT_OS_FREEBSD)
    470471    (PFNRT)RTStrPurgeEncoding,
     472#endif
    471473    NULL
    472474};
  • trunk/src/VBox/HostDrivers/Support/freebsd/Makefile

    r55095 r60603  
    149149SRCS += \
    150150        alloc-r0drv.c \
     151        alloc-ef-r0drv.c \
    151152        initterm-r0drv.c \
    152153        memobj-r0drv.c \
  • trunk/src/VBox/HostDrivers/Support/freebsd/files_vboxdrv

    r57943 r60603  
    152152    ${PATH_ROOT}/src/VBox/Runtime/include/internal/lockvalidator.h=>include/internal/lockvalidator.h \
    153153    ${PATH_ROOT}/src/VBox/Runtime/include/internal/magics.h=>include/internal/magics.h \
     154    ${PATH_ROOT}/src/VBox/Runtime/include/internal/mem.h=>include/internal/mem.h \
    154155    ${PATH_ROOT}/src/VBox/Runtime/include/internal/memobj.h=>include/internal/memobj.h \
    155156    ${PATH_ROOT}/src/VBox/Runtime/include/internal/string.h=>include/internal/string.h \
     
    178179    ${PATH_ROOT}/src/VBox/Runtime/generic/uuid-generic.cpp=>generic/uuid-generic.c \
    179180    ${PATH_ROOT}/src/VBox/Runtime/r0drv/alloc-r0drv.cpp=>r0drv/alloc-r0drv.c \
     181    ${PATH_ROOT}/src/VBox/Runtime/r0drv/alloc-ef-r0drv.cpp=>r0drv/alloc-ef-r0drv.c \
    180182    ${PATH_ROOT}/src/VBox/Runtime/r0drv/alloc-r0drv.h=>r0drv/alloc-r0drv.h \
    181183    ${PATH_ROOT}/src/VBox/Runtime/r0drv/initterm-r0drv.cpp=>r0drv/initterm-r0drv.c \
  • trunk/src/VBox/Runtime/r0drv/alloc-ef-r0drv.cpp

    r59747 r60603  
    118118#ifdef RT_OS_WINDOWS
    119119# include <Windows.h>
    120 #else
     120#elif !defined(RT_OS_FREEBSD)
    121121# include <sys/mman.h>
    122122#endif
     
    382382 * This is something which you should call from gdb.
    383383 */
    384 extern "C" void RTMemDump(void);
     384RT_C_DECLS_BEGIN
     385void RTMemDump(void);
     386RT_C_DECLS_END
     387
    385388void RTMemDump(void)
    386389{
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