VirtualBox

Changeset 44556 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Feb 6, 2013 12:06:34 AM (12 years ago)
Author:
vboxsync
Message:

Use posix_spawn on mac as well, its (mostly) there since 10.5.

Location:
trunk/src/VBox/Runtime
Files:
2 edited

Legend:

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

    r44555 r44556  
    3030*******************************************************************************/
    3131#define LOG_GROUP RTLOGGROUP_PROCESS
     32#include <iprt/cdefs.h>
     33
    3234#include <unistd.h>
    3335#include <stdlib.h>
     
    4345# include <shadow.h>
    4446#endif
     47
    4548#if defined(RT_OS_LINUX) || defined(RT_OS_OS2)
    4649/* While Solaris has posix_spawn() of course we don't want to use it as
     
    4952# define HAVE_POSIX_SPAWN 1
    5053#endif
     54#if defined(RT_OS_DARWIN) && defined(MAC_OS_X_VERSION_MIN_REQUIRED)
     55# if MAC_OS_X_VERSION_MIN_REQUIRED >= 1050
     56#  define HAVE_POSIX_SPAWN 1
     57# endif
     58#endif
    5159#ifdef HAVE_POSIX_SPAWN
    5260# include <spawn.h>
    5361#endif
     62
    5463#ifdef RT_OS_DARWIN
    5564# include <mach-o/dyld.h>
  • trunk/src/VBox/Runtime/testcase/tstRTProcCreatePrf.cpp

    r42503 r44556  
    5757    uint64_t NsStart = RTTimeNanoTS();
    5858    uint32_t i;
    59 #if defined(RT_OS_WINDOWS) || defined(RT_OS_OS2)
     59#if defined(RT_OS_WINDOWS) || defined(RT_OS_OS2) || defined(RT_OS_DARWIN)
    6060    for (i = 0; i < 1000; i++)
    6161#else
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