Changeset 54653


Ignore:
Timestamp:
Jul 4, 2009, 9:12:43 PM (9 years ago)
Author:
bschaeling
Message:

applied patch to use _NSGetEnviron() in order to access environment variables on Mac OS X

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/process/boost/process/self.hpp

    r52523 r54653  
    2323#if defined(BOOST_POSIX_API)
    2424#  include <unistd.h>
     25#  if defined(__APPLE__)
     26#    include <crt_externs.h>
     27#  endif
    2528#elif defined(BOOST_WINDOWS_API)
    2629#  include <windows.h>
     
    7679
    7780#if defined(BOOST_POSIX_API)
     81#  if defined(__APPLE__)
     82        char **env = *_NSGetEnviron();
     83#  else
    7884        char **env = ::environ;
     85#  endif
    7986        while (*env)
    8087        {
Note: See TracChangeset for help on using the changeset viewer.