VirtualBox

Changeset 4101 in vbox for trunk


Ignore:
Timestamp:
Aug 9, 2007 5:26:04 PM (17 years ago)
Author:
vboxsync
Message:

Attempt to fix the burning L4 testbox by making Dmitry's environment variable code in the runtime into dummy code on L4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/generic/env-generic.cpp

    r4071 r4101  
    130130RTDECL(int) RTEnvClone(PRTENV pEnv, char const *const *apszEnv)
    131131{
     132#ifndef RT_OS_L4  /* So far, our L4 libraries do not include environment support. */
    132133    if (apszEnv == NULL)
    133134        apszEnv = environ;
     
    136137    size_t cEnv = 0;
    137138    for (; apszEnv[cEnv]; ++cEnv) {}
     139#else
     140    size_t cEnv = 0;
     141#endif
    138142
    139143    struct RTENVINTERNAL *pIntEnv;
     
    143147        return rc;
    144148
     149#ifndef RT_OS_L4
    145150    for (size_t i = 0; i < cEnv; ++i)
    146151    {
     
    155160        ++pIntEnv->cCount;
    156161    }
     162#endif
    157163
    158164    if (RT_SUCCESS(rc))
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