VirtualBox

Ignore:
Timestamp:
May 4, 2009 9:25:26 PM (16 years ago)
Author:
vboxsync
Message:

Runtime/r0drv-freebsd: Fixes for FreeBSD 8.0. Thanks to Ulf Lilleengen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/freebsd/thread2-r0drv-freebsd.c

    r18972 r19341  
    112112    rc = rtThreadMain(pThreadInt, (RTNATIVETHREAD)Self, &pThreadInt->szName[0]);
    113113
     114#if __FreeBSD_version >= 800002
     115    kproc_exit(rc);
     116#else
    114117    kthread_exit(rc);
     118#endif
    115119}
    116120
     
    121125    struct proc *pProc;
    122126
     127#if __FreeBSD_version >= 800002
     128    rc = kproc_create(rtThreadNativeMain, pThreadInt, &pProc, RFHIGHPID, 0, "%s", pThreadInt->szName);
     129#else
    123130    rc = kthread_create(rtThreadNativeMain, pThreadInt, &pProc, RFHIGHPID, 0, "%s", pThreadInt->szName);
     131#endif
    124132    if (!rc)
    125133    {
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