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 48 48 posix_spawnattr_t attr; 49 49 }; 50 50 51 extern char **environ; 51 #include <crt_externs.h> 52 52 53 53 static void Timer (void *data) 54 54 { … … 60 60 pid_t pid; 61 61 62 62 int err = posix_spawnp (&pid, "xdg-screensaver", NULL, &sys->attr, 63 argv, environ);63 argv, *_NSGetEnviron()); 64 64 if (err == 0) 65 65 { 66 66 int status; -
modules/stream_filter/
old new 92 92 int64_t pts_delay; 93 93 }; 94 94 95 extern char **environ; 95 #include <crt_externs.h> 96 96 97 97 static const size_t bufsize = 65536; 98 98 #ifdef HAVE_VMSPLICE … … 361 361 if (!posix_spawn_file_actions_adddup2 (&actions, comp[0], 0) 362 362 && !posix_spawn_file_actions_adddup2 (&actions, uncomp[1], 1) 363 363 && !posix_spawnp (&p_sys->pid, path, &actions, NULL, argv, 364 environ))364 *_NSGetEnviron())) 365 365 { 366 366 if (vlc_clone (&p_sys->thread, Thread, stream, 367 367 VLC_THREAD_PRIORITY_INPUT) == 0)