Ticket #54480: patch-use-NSGetEnviron.diff

File patch-use-NSGetEnviron.diff, 1.3 KB (added by RJVB (René Bertin), 7 years ago)
  • modules/misc/inhibit/

    old new  
    4848    posix_spawnattr_t attr;
    4949};
    5050
    51 extern char **environ;
     51#include <crt_externs.h>
    5252
    5353static void Timer (void *data)
    5454{
     
    6060    pid_t pid;
    6161
    6262    int err = posix_spawnp (&pid, "xdg-screensaver", NULL, &sys->attr,
    63                             argv, environ);
     63                            argv, *_NSGetEnviron());
    6464    if (err == 0)
    6565    {
    6666        int status;
  • modules/stream_filter/

    old new  
    9292    int64_t      pts_delay;
    9393};
    9494
    95 extern char **environ;
     95#include <crt_externs.h>
    9696
    9797static const size_t bufsize = 65536;
    9898#ifdef HAVE_VMSPLICE
     
    361361                if (!posix_spawn_file_actions_adddup2 (&actions, comp[0], 0)
    362362                 && !posix_spawn_file_actions_adddup2 (&actions, uncomp[1], 1)
    363363                 && !posix_spawnp (&p_sys->pid, path, &actions, NULL, argv,
    364                                    environ))
     364                                   *_NSGetEnviron()))
    365365                {
    366366                    if (vlc_clone (&p_sys->thread, Thread, stream,
    367367                                   VLC_THREAD_PRIORITY_INPUT) == 0)